Jump to content

Customise Promotional Pop-up Banner Font

Go to solution Solved by paul2009,

Recommended Posts

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!

Screenshot 2023-03-16 at 21.36.30.png

Edited by freedomfung852
tweaking words
Link to comment
  • freedomfung852 changed the title to Customise Promotional Pop-up Banner Font
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 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
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?

Screenshot 2023-03-16 at 22.46.11.png

Link to comment
  • Solution

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 🙂

image.thumb.png.ee8a8ce2d7860751ecc74ddfd9e074ef.png

Did this help? Please give feedback by clicking an icon below  ⬇️

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
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.