Jump to content

Announcement bar underneath the navigation bar

Recommended Posts

Hi Squarespace community,

Is there a custom css code whereby it is possible to move the announcement bar which is normally located at the top of the screen to just underneath the navigation bar? (Navigation bar at the top of the screen > followed by announcement bar > main content)

Thank you for any help provided.

Link to comment
On 3/15/2021 at 2:12 PM, steven.li said:

Hi Squarespace community,

Is there a custom css code whereby it is possible to move the announcement bar which is normally located at the top of the screen to just underneath the navigation bar? (Navigation bar at the top of the screen > followed by announcement bar > main content)

Thank you for any help provided.

What template version you are on? It would help to share your site url

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 1 month later...
On 5/20/2021 at 6:44 AM, MorganYoungblood said:

@tuanphan Thanks! The announcement bar is enabled now.

Add to Design > Custom CSS

/* header-announcement bar */
header#header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
}

 

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
  • 3 months later...
14 hours ago, SShepherd said:

Thank you @tuanphan! One issue I am running into - pushing the announcement bar under blocks links in the folder drop down. For example, there are two pages under "Find Us" on my site: Missoula Food Truck & Florence Food Truck Park

https://rootsandbitters-2.squarespace.com/
Password: bitters

I can take them out of the folder but wondered if anyone had any ideas?

Screen Shot 2021-09-15 at 3.43.09 PM.png

Can you enable dropdown? We can check easier

If your site is live, you can duplicate site & do there

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
  • 2 years later...
On 4/28/2024 at 7:40 AM, MariaFY said:

@tuanphan I set the header to fixed (7.1) but this causes the announcement bar to be fixed as well. Is there any way, the announcement bar scrolls while the header navigation stays fixed?

 

If you share site url, we can check problem easier.

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
On 5/5/2024 at 4:52 AM, carlaolson said:

Hi @tuanphan, I've used your code for moving the announcement below the header (thanks!), but like above, the dropdown folder pages are now positioned behind the bar. Is there a fix for this?

https://kb-balancepointpublishing.squarespace.com
p/w/: YAYBOOKS

Thank you!

You can use this code to Website > Website Tools > Custom CSS.

div.header-announcement-bar-wrapper {
    z-index: 12345678987654321 !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

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.