how to enable sticky menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1206497
    Maurice Couwenberg
    Participant

    hello,

    i use booklium theme for 2 sites. I changed the primary menu to the top in stead of side. Unfortunately it gets out of focus when I scroll down. How can i enable a sticky primary menu?

    https://beachapartmentportugal.eu

    Discover Eco Glamping in Portugal

    thanks for your help

    Maurice

    #1208182
    Andre Flores
    Moderator

    Hello Maurice,

    Add the following code under Appearance ->Customize ->Additional CSS:

    #masthead {
    	position: sticky;
    	top: 0;
    	z-index: 10;
    }

    Regards,
    Andre

    #1479763
    Laurent
    Participant

    Hi,
    In addition of your reply, is it possible when menu is getting sticky to get a shrink effect (at least logo/nav menu reduces lightly?)

    Thank you

    #1481070
    J. Davis
    Keymaster

    Hi Laurent,

    Thanks for your question. Unfortunately, it requires a more complex way to make a header sticky by using JS in order to change the class when the menu gets sticky and vice versa. We do not offer complex customization services for now. You may try to use a third-party plugin to make the header sticky. It might be helpful.

    best regards,
    John Davis

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