Jump to content

[Share] CSS Announcement Bar Color

Recommended Posts

Some CSS code to change Announcement Bar Color.

You can add CSS to Website Tools > Custom CSS.

#1. Color on All Pages

div.sqs-announcement-bar {
    background-color: #f1f !important;
}

image.png.2650e147245d236514157b50a8967a56.png

#2. Color on Desktop

@media screen and (min-width:768px) {
  div.sqs-announcement-bar {
      background-color: #f1f !important;
  }
}

#3. Color on Mobile

@media screen and (max-width:767px) {
  div.sqs-announcement-bar {
      background-color: #f1f !important;
  }
}

#4. Color: before header scroll

header#header:not(.shrink) div.sqs-announcement-bar {
    background-color: #f1f !important;
}

#5. Color on Header Scroll

header#header.shrink div.sqs-announcement-bar {
    background-color: #f1f !important;
}

#6. Color when mobile menu is open

body.header--menu-open div.sqs-announcement-bar {
    background-color: #f1f !important;
}

#7. Color when mobile menu is closed

body:not(.header--menu-open) div.sqs-announcement-bar {
    background-color: #f1f !important;
}

#8. Color on One Page

First, you need to find Page ID

Next, use CSS code like this

#collection-66a1bfc99041e47b896c1e48 div.sqs-announcement-bar {
    background-color: #f1f !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Replies 0
  • Views 328
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.