Jump to content

ADD THE SECOND ANNOUNCEMENT BAR

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 7
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

You can add another paragraph, then we can give code to style both to new different color, something like this. However if click Close button >> it will close both bars, so you can consider remove X (I can give code)

div.sqs-announcement-bar-text {
    padding: 0 !important;
}

.sqs-announcement-bar-custom-location p:first-child {
    background-color: var(--announcement-bar-background-color);
    padding: 5px;
}

.sqs-announcement-bar-custom-location p:last-child {
    background-color: blue;
    padding: 5px;
}

span.sqs-announcement-bar-close {
    display: none;
}

image.thumb.png.124e47eefda77483813cc0b78ac2793c.png

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
17 hours ago, tuanphan said:

You can add another paragraph, then we can give code to style both to new different color, something like this. However if click Close button >> it will close both bars, so you can consider remove X (I can give code)

div.sqs-announcement-bar-text {
    padding: 0 !important;
}

.sqs-announcement-bar-custom-location p:first-child {
    background-color: var(--announcement-bar-background-color);
    padding: 5px;
}

.sqs-announcement-bar-custom-location p:last-child {
    background-color: blue;
    padding: 5px;
}

span.sqs-announcement-bar-close {
    display: none;
}

image.thumb.png.124e47eefda77483813cc0b78ac2793c.png

Hi, after using the code my announcement bar changed its color but there was no additional announcement bar added.image.thumb.png.5ab55cc174a4ebb590ea78268ac2c20f.png

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.