I am having the toughest time getting a custom font to load on my Publish site. I landed on Google Font’s “Poppins” for my font. Here is the code I have in my publish.css file.
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital@1&display=swap');
.published-container {
--font-text-theme: 'Poppins';
--font-text: 'Poppins';
--font-interface-theme: 'Poppins';
--page-title-font: 'Poppins';
--site-name-font: 'Poppins';
--component-title-font: 'Poppins';
}
This does load in Chrome and Firefox, although the sidebar/navigation does not load in Poppins.
In Safari though, which is my default browser, the site font turns into some sort of serif font. This holds true after clearing site data, cookies, etc. and waiting for the site to update. Chrome and the like adopt the change immediately.
Does anyone have any ideas as to why…
- Safari is not accepting this font change and defaulting to a serif font?
- Why the navigation/sidebar are not adopting Poppins despite the use of " --font-interface-theme?"
I appreciate any help!
Chrome and the Poppins not in sidebar
Safari and Serif
Here is the site, if you care to check it out for yourself. I’ll leave the CSS as is for now.