freedomfung852 Posted March 16, 2023 Share Posted March 16, 2023 (edited) Hello brilliant web-builders! I'm not sure why even the CSS selector seems to be correct, the headline in the Promotional Pop-up cannot be changed to the custom font I want to use instead. (The rest with h1 h2 h3 on the site are all workig.) Would be great if you know how to fix this! Edited March 16, 2023 by freedomfung852 tweaking words Link to comment
paul2009 Posted March 16, 2023 Share Posted March 16, 2023 (edited) 2 hours ago, freedomfung852 said: I'm not sure why even the CSS selector seems to be correct, the headline in the Promotional Pop-up cannot be changed to the custom font I want to use instead. h1 sqs-slash-page-header {font-family: 'Noctura Georgia';} The popup heading has a sqs-slash-page-header ID. As this is an ID, you need to prefix it with a "#" character, and remove the space between h1 and the selector, so that it is h1#sqs-slash-page-header Generally, you should also be more specific with your selectors, otherwise your custom CSS may be ignored by existing CSS. It should look something like this (you may need to scroll to the right to see all the CSS below 🙂 : .sqs-slide-wrapper[data-slide-type="popup-overlay"] [data-slice-type="heading"]:not([data-compound-type]) h1#sqs-slash-page-header { font-family: 'Noctura Georgia'!important; } Did this help? Please give feedback by clicking an icon below ⬇️ Edited March 16, 2023 by paul2009 added !important rule Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
freedomfung852 Posted March 16, 2023 Author Share Posted March 16, 2023 17 minutes ago, paul2009 said: The popup heading has a sqs-slash-page-header ID. As this is an ID, you need to prefix it with a "#" character, and remove the space between h1 and the selector, so that it is h1#sqs-slash-page-header That said, to avoid using an important rule, you'll also need to be more specific with your selectors, otherwise your custom CSS will be ignored. It should look something like this (you may need to scroll to the right to see all the CSS below 🙂 : .sqs-slide-wrapper[data-slide-type="popup-overlay"] [data-slice-type="heading"]:not([data-compound-type]) h1#sqs-slash-page-header { font-family: 'Noctura Georgia'; } Did this help? Please give feedback by clicking an icon below ⬇️ Thanks Paul for your quick response! That makes sense indeed - although I have tried this specfic new code, and seems the change isn't in effect yet for some reason. Any thoughts? Link to comment
Solution paul2009 Posted March 16, 2023 Solution Share Posted March 16, 2023 Please add the important rule too (I've updated the code above) as the Squarespace CSS has been added inline and so will override your Custom CSS without this rule 🙂 Did this help? Please give feedback by clicking an icon below ⬇️ freedomfung852 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
freedomfung852 Posted March 31, 2023 Author Share Posted March 31, 2023 On 3/17/2023 at 12:18 AM, paul2009 said: Please add the important rule too (I've updated the code above) as the Squarespace CSS has been added inline and so will override your Custom CSS without this rule 🙂 Did this help? Please give feedback by clicking an icon below ⬇️ Thanks so much Paul! That's it! 🙂 paul2009 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