Maverick85 Posted August 23 Share Posted August 23 Hi guys! I've been struggling for a while with this... Heading 1: Will be used for the website homepage logo 'Pang's Wok' - modak Heading 2: I would like to be Hammersmith One Heading 3: I would like to be Playfair Display I did try simple code but it doesn't work: h3 { font-family: playfair display; } What am I doing wrong? Any help would be greatly appreciated. My website currently has the fonts all over the place while I try and figure this out. Thanks! Link to comment
Ziggy Posted August 23 Share Posted August 23 Set your heading font to Pang's Wok and add this to Custom CSS: h2, h2 a, h2 strong { font-family: Hammersmith One; } h3, h3 a, h3 strong { font-family: Playfair Display; } Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Maverick85 Posted August 23 Author Share Posted August 23 Hi Ziggy Thanks for taking the time to provide the code. Unfortunately I'm still getting the same problem in that the website doesn't display those two fonts. They both end up being the same generic font, neither of them the font written in code. Any idea why? Ziggy 1 Link to comment
Ziggy Posted August 23 Share Posted August 23 There's nothing wrong with the code in my testing, how are you applying it? Can you send some screenshots? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Maverick85 Posted August 23 Author Share Posted August 23 So here is one screenshot with the two fonts I want. The other screenshot is from the website using the CSS. The text in red and cream are set to different headings (h2 and h3) but using the code fonts appear the same. Link to comment
Ziggy Posted August 23 Share Posted August 23 Can you show me how you are applying the CSS with a screenshot? Can you share your website as well? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Maverick85 Posted August 23 Author Share Posted August 23 website is pangswok.fr Thanks again so much for your help. Link to comment
Ziggy Posted August 23 Share Posted August 23 Thanks for sharing your website. The fonts are applying correctly. If you still can't see it you may need to clear your browser cache. Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Maverick85 Posted August 23 Author Share Posted August 23 That's so strange I cleared cache but the fonts do not appear on any of my devices. Link to comment
Ziggy Posted August 23 Share Posted August 23 Not sure, I can only tell you it's correct for me: Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Maverick85 Posted August 23 Author Share Posted August 23 That's a big help. Thank you! I will keep playing around until I can get it to appear correctly for me. Ziggy 1 Link to comment
AndreaDube Posted August 23 Share Posted August 23 9 minutes ago, Maverick85 said: That's a big help. Thank you! I will keep playing around until I can get it to appear correctly for me. FWIW, they aren't appearing correctly to me either. I tried Chrome, Safari, and Firefox. I also tried inserting those specific fonts into my own website (along with !important) and it's not working for me either. I've been having really inconsistent results with CSS/fonts since Squarespace's recent fonts overhaul. Link to comment
Maverick85 Posted August 23 Author Share Posted August 23 3 hours ago, AndreaDube said: FWIW, they aren't appearing correctly to me either. I tried Chrome, Safari, and Firefox. I also tried inserting those specific fonts into my own website (along with !important) and it's not working for me either. I've been having really inconsistent results with CSS/fonts since Squarespace's recent fonts overhaul. Thanks for your input. Really appreciate it. I'm still working on it trying to get it working correctly. Link to comment
tuanphan Posted August 24 Share Posted August 24 It doesn't work to me. Have you assigned Hammersmith One for any elements yet?With some fonts, if you have not assigned in Site Styles, the font file will not be able to load to be able to use CSS Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Maverick85 Posted August 25 Author Share Posted August 25 21 hours ago, Hassan95 said: It seems like you're trying to apply custom fonts to different headings on your website using CSS. The issue you're facing might be due to incorrect font names or missing font imports. Let me guide you through the process step by step. Import the fonts in your CSS: css Copy code @import url('https://fonts.googleapis.com/css2?family=Hammersmith+One&family=Playfair+Display&display=swap'); Apply the fonts to your headings: css Copy code h1 { font-family: 'Pang\'s Wok', modak, sans-serif; } h2 { font-family: 'Hammersmith One', sans-serif; } h3 { font-family: 'Playfair Display', serif; } Ensure proper font names, including any spaces, are enclosed in single quotes. This seems to have worked (although I wasn't able to use the first code due to an href error) Link to comment
Maverick85 Posted August 25 Author Share Posted August 25 Huge thank you to everyone who chimed in tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment