[Resolved] Top Bar: wish to have an option to make it floating

Home Forums Support Top Bar: wish to have an option to make it floating

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #934202
    Marc

    I use the top bar for my contact information – it would be useful to have an option to make it floating, so it stays always visible.

    #934419
    David
    Staff
    Customer Support

    Hi there,

    you could try this CSS to make that happen:

    .top-bar {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }
    
    .sticky-enabled .main-navigation.is_stuck {
        top: 40px !important;
    }
    #934505
    Marc

    Thank you, works. Still would be a nice option for a future release.

    #934516
    David
    Staff
    Customer Support

    Glad to be of help. Some of these issues are easy to solve with a few lines of CSS, automating it becomes a lot more tricky as it would require Javascript to calculate the various heights for offsetting sticky objects – and JS can lead to a ‘jumpy’ experience. But we’re constantly looking for improvements so we’ll continue to look at what can be done.

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