josieng Posted December 8, 2022 Share Posted December 8, 2022 Hi there. I have two questions! Question 1: I am using GrandSlang, a custom font that has multiple styles - GrandSlang Roman and GrandSlang Italic. I want to implement both throughout the website (h1-h3), so that by default I am using GrandSlang Roman, and when I italicise words, it pulls from the GrandSlang Italic font (and not simply italicize GrandSlang Roman. I have both of the fonts uploaded into Squarespace, I'm just not sure how to write the code so that it does not apply one style for all Here's the website with the header that has both Roman and Italic styles: https://www.arcanastudio.co/ Here's my code Quote @font-face { font-family: 'Grandslang'; src: url(https://static1.squarespace.com/static/61ecba7a4fad86641f4faffc/t/61ecbacdcc0eeb42ab7244e0/1642904269271/GrandSlang-Roman.otf); } h1, h2, .image-title.sqs-dynamic-text h4 { font-family: 'Grandslang',sans-serif !important; } Question 2: My custom fonts are not showing up on mobile! Any ideas? Link to comment
Beyondspace Posted December 8, 2022 Share Posted December 8, 2022 1 hour ago, josieng said: Hi there. I have two questions! Question 1: I am using GrandSlang, a custom font that has multiple styles - GrandSlang Roman and GrandSlang Italic. I want to implement both throughout the website (h1-h3), so that by default I am using GrandSlang Roman, and when I italicise words, it pulls from the GrandSlang Italic font (and not simply italicize GrandSlang Roman. I have both of the fonts uploaded into Squarespace, I'm just not sure how to write the code so that it does not apply one style for all Here's the website with the header that has both Roman and Italic styles: https://www.arcanastudio.co/ Here's my code Question 2: My custom fonts are not showing up on mobile! Any ideas? I check that this font works properly Have you figured it out? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
josieng Posted December 8, 2022 Author Share Posted December 8, 2022 Thanks @Beyondspace for checking. That's weird, I just checked on my mobile, and this is the first time I've seen it successfully appear on my phone... Wondering if you can answer my first question 🙂 You'll see the italic is indeed, italic. However, the font has a specific italic font, which it should look different. But I don't know how to apply the code to tell the font to use the italic font when it is italicised. Here's a screenshot if the font were the italic font (and not just italic styling) Link to comment
Beyondspace Posted December 8, 2022 Share Posted December 8, 2022 (edited) 3 minutes ago, josieng said: Thanks @Beyondspace for checking. That's weird, I just checked on my mobile, and this is the first time I've seen it successfully appear on my phone... Wondering if you can answer my first question 🙂 You'll see the italic is indeed, italic. However, the font has a specific italic font, which it should look different. But I don't know how to apply the code to tell the font to use the italic font when it is italicised. Here's a screenshot if the font were the italic font (and not just italic styling) You can try h1 em, h2 em, h3 em, h4 em { font-family: 'your custom font for italic' !important; } Edited December 8, 2022 by Beyondspace BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
josieng Posted December 8, 2022 Author Share Posted December 8, 2022 (edited) Hmm, that's not quite working. Here's my code and a screenshot of what I'm trying to achieve. Thanks for helping 🙂 @Beyondspace Quote @font-face { font-family: 'Grandslang'; src: url('https://static1.squarespace.com/static/61ecba7a4fad86641f4faffc/t/61ecbacdcc0eeb42ab7244e0/1642904269271/GrandSlang-Roman.otf'); font-family: 'Grandslangitalic'; src: url('https://static1.squarespace.com/static/61ecba7a4fad86641f4faffc/t/61ecbac43ad0a2796cf167a9/1642904261107/GrandSlang-Italic.otf'); } h1, h2, .image-title.sqs-dynamic-text h4 { font-family: 'Grandslang', !important; } Edited December 8, 2022 by josieng Link to comment
Beyondspace Posted December 9, 2022 Share Posted December 9, 2022 14 hours ago, josieng said: Hmm, that's not quite working. Here's my code and a screenshot of what I'm trying to achieve. Thanks for helping 🙂 @Beyondspace Here is my testing Have you tried adding this custom Css code? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
josieng Posted December 9, 2022 Author Share Posted December 9, 2022 Hm, but now the first line is not picking up using GrandSlang Roman. Link to comment
Beyondspace Posted December 9, 2022 Share Posted December 9, 2022 I tried the font Grandslangitalic for other normal text But it does not show the font as you describe? May be the reason is the installation of Grandslangitalic font. Can you check the font file again? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
josieng Posted December 9, 2022 Author Share Posted December 9, 2022 18 hours ago, Beyondspace said: h1 em, h2 em, h3 em, h4 em { font-family: 'your custom font for italic' !important; } Ok, I added the above (with 'grandslangitalic') - Can you see on your computer how it looks? As I have the font installed on my computer, so of course it shows up correctly. It also works now on mobile, but now the Italic is TOO italicized 😅 Link to comment
josieng Posted December 9, 2022 Author Share Posted December 9, 2022 18 hours ago, Beyondspace said: h1 em, h2 em, h3 em, h4 em { font-family: 'your custom font for italic' !important; } Ok, I added the above (with 'grandslangitalic') - Can you see on your computer how it looks? As I have the font installed on my computer, so of course it shows up correctly. It also works now on mobile, but now the Italic is TOO italicized 😅 Link to comment
Solution Beyondspace Posted December 9, 2022 Solution Share Posted December 9, 2022 It looks different on my end Now the normal heading and the italic text have the right font. I think the font is fine now BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
josieng Posted December 12, 2022 Author Share Posted December 12, 2022 Brilliant, thank you for checking and QAing for me 🙂 @Beyondspace 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