Jump to content

different announcement bar on certain pages

Go to solution Solved by Ziggy,

Recommended Posts

Hi all! 

I made this site in Dutch and English. I have an announcement bar, which is in Dutch. But on the English pages, I would like it to be in the correct language. Have been looking all over for code for this, but cannot find it. 

Any ideas? Thanks!

Arie

Link to comment

If you add both text to your announcement bar, and make the English italics, and the Dutch bold.

Then add this to Custom CSS to make the text consistent:

.sqs-announcement-bar-text p em, .sqs-announcement-bar-text p strong {
  font-weight:400;
  font-style: initial;
}

Then on the English pages add this to each page header code injection:

<style>
.sqs-announcement-bar-text p strong { display:none; }
</style>

And on the Dutch pages add this to each page header code injection:

<style>
.sqs-announcement-bar-text p em { display:none; }
</style>

Hope that works for you!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

It doesn't appear that you made the Dutch text bold.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

No problem! 

I hope this solution works for you, it does remove some options for styling text but it is easy enough to implement and manage.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

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.