Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Moving the Announcement Bar


mattvrgs

Question

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

4 answers to this question

Recommended Posts

  • 0
18 hours ago, mattvrgs said:

Site URL: https://vanilla-collie-xre6.squarespace.com/

PW: 123456

Hi there!

So, I've positioned the Announcement Bar where I want it on desktop, but every time the screen size changes it gets all messed up. Is there a way I can force the position to the top of the dark gray section so it will always be there? I super appreciate the help!

Add to Design > Custom CSS

/* Announcement bar */
.sqs-announcement-bar-dropzone {
    position: absolute !important;
    top: 0;
    z-index: 999;
    left: 0;
    width: 100%;
}
article section:nth-child(-n+2) {
    margin-top: 100px !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0
On 5/1/2021 at 4:00 AM, tuanphan said:

Add to Design > Custom CSS


/* Announcement bar */
.sqs-announcement-bar-dropzone {
    position: absolute !important;
    top: 0;
    z-index: 999;
    left: 0;
    width: 100%;
}
article section:nth-child(-n+2) {
    margin-top: 100px !important;
}

 

So, I already have this code on my site: 

 

.sqs-announcement-bar-dropzone {
    position: -webkit-sticky;
    position: sticky;
    top: 515px;
    z-index: 10001;
}

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

I tried pasting the code on top of mine, and updating my code to yours and I had some weird things happen. There was a big empty space at the top of the header where the announcement bar was, and then when I went full screen it moved again.

This is the correct positioning. I was trying to force it to the top of section[data-section-id="608b1790a9d0f438db008209"] but haven't been able to figure out how. I appreciate it.

image.thumb.png.ee1fd8850d281ef83bf77a8506058707.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...