Jump to content

Announcement bar overlapping menu on mobile

Go to solution Solved by Web_Solutions,

Recommended Posts

Hi everyone, 

I have added an announcement bar and I just can't figure out how to stop it overlapping the menu on the mobile. I'd be grateful for help with 3 things: 

  1. Making announcement bar disappear when clicking on menu. 
  2. Reduce text wrapping on mobile, so I can get announcement text all on one line. 
  3. Make bar height smaller, if text on one line. 

Website: https://www.probation-institute.org

Many thanks,

Richard

Menu.png

Edited by RichardR
Link to comment
  • Solution
12 hours ago, RichardR said:

Hi everyone, 

I have added an announcement bar and I just can't figure out how to stop it overlapping the menu on the mobile. I'd be grateful for help with 3 things: 

  1. Making announcement bar disappear when clicking on menu. 
  2. Reduce text wrapping on mobile, so I can get announcement text all on one line. 
  3. Make bar height smaller, if text on one line. 

Website: https://www.probation-institute.org

Many thanks,

Richard

Menu.png

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

@media only screen and (max-width: 767px) {
    .sqs-announcement-bar-close {
        width: 2em !important;
        height: 2em !important;
    }
    .sqs-announcement-bar-close:after {
        line-height: 2em !important;
    }
    .sqs-announcement-bar-text{
        padding: .4em 2em !important;
    }
    .sqs-announcement-bar-text p {
        font-size: 14px !important;
    }
    .is-mobile-overlay-active .sqs-announcement-bar-dropzone {
        display: none !important;
    }
}

 

Screenshot_73.png

Screenshot_74.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.