All things Shopify and commerce
Hi Shopify Community,
I'm currently experiencing an issue with applying the Sagrantino font to the rich text section in the Dawn theme. Despite several attempts and various methods, the font isn't being recognized, and it defaults to Times instead.
Using Theme Settings:
Adding Custom CSS:
Checking the Correct Font Family:
Adding Custom CSS to the Theme Editor:
I'm seeking assistance on what else I might try to ensure the Sagrantino font is applied correctly to the specified rich text section in the Dawn theme. Any help or suggestions would be greatly appreciated!
Thank you in advance!
Best regards,
Hey @dan_mz
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
The problem here is that when you select fonts in Theme Settings, theme code generates @font-face CSS rules which instruct your browser to load relevant font files from Shopify CDN.
It's not enough to write p { font-family: 'Sagrantino', serif !important; } without also creating @font-face for this font, it's not auto-generated.
Unfortunately, you can only create @font-face for Shopify font if you've selected this font in Theme Customizer, there is no way to generate it by knowing the font name/handle.
You'd need to modify your theme code to add this setting.
Alternatively, if you can find acceptable Google font, you should be able to get a font file URL and then create CSS rules you can paste into Custom CSS setting.
Thanks Tim,
Are you able to advise on the appropriate code and code location, that will allow me to modify the theme settings so I can add this font to the rich text section?
Cheers
Dan
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024