[Support request] Element Top Bar Not Sticky

Home Forums Support [Support request] Element Top Bar Not Sticky

Home Forums Support Element Top Bar Not Sticky

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2027248
    Colin

    Hi there,

    I have created a hello top bar in elements as a block hook and it’s showing.

    But I can’t seem to get it to stay when scrolling down.

    I’ve added CSS code from searches on here but it’s still not working.

    I deleted the code and decided to ask the question on here.

    My website is:

    https://blogancer.com

    Any advice?

    Thank you!

    Colin

    #2027423
    David
    Staff
    Customer Support

    Hi there,

    1. Add this CSS to your site:

    .sticky-top-bar {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    2. Edit the Element, select the parent Container Block, in the sidebar settings: Advanced > Additional CSS Class(es) field add: sticky-top-bar

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.