Please god help me, I’m losing my mind.
I’m trying to change the font of my header text. Simply the header text. I don’t want to change anything other headings, just the header text on the home page. Current font is Oswald and I want it to be Smooch.
I have tried the custom CSS section under the relevant section in the theme editor, nothing.
To do this, I originally specified a h2 header with the below code:
h2 {
font-family: ‘Smooch’;
}
It did nothing. So I specifed all headers using h1, h2, h3 etc and spaced them correctly. Nothing.
I tried adding an !important to try and force it through, nothing.
I then headed to “edit code” and went to the base.css asset and tried putting it at the bottom of the file with:
.header { font-family: ‘Oswald’; }
Nothing. Added an !important to that, nothing.
Tried adding the original code I was using in the custom CSS:
h1,h2,h3,h4,h5,.h0,.h1,.h2,.h3,.h4,.h5 { font-family: ‘smooch’; }
and also tried
h1,h2,h3,h4,h5, { font-family: ‘smooch’; }
Nothing.
In all cases I have tried an upper case “s” in smooch, tried removing the apostraphes around the word “smooch”, tried the official font handle of “smooch_n4” as listed in the Shopify dev resource. Nothing.
I’ve tried viewing the changes in incogito tabs for each change in case it was a cache issue. STILL nothing.
I have tried the steps in all of these community posts:
https://community.shopify.com/c/shopify-design/change-font-of-home-page-header-only/m-p/2254849
(In any of the above posts where it’s trying to resolve a slightly different issue, rest assured I have changed it to the correct code to try and change the font-family)
I’m pulling my friggin hair out here. Any help would be enormously appreciated.
