Home Support Themes ListingHive Help make the menu sticky

Help make the menu sticky

  • Author
    Posts
  • mindengrave

    Hello ihor, kindly help add feature that’ll make the theme menu sticky. Instead of relying on all these plugins that can render the site vulnerable.

    ihor developer

    Hi,

    This CSS code snippet should work, but it may require additional fixes:

    body {
    	padding-top: 72px;
    }
    
    .header-navbar {
    	position: fixed;
    	top: 0;
    	left: 0;
    	right: 0;
    	z-index: 1000;
    	background-color: #fff;
    	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    }
    BrownC

    Hi ihor,

    Can you edit it to make the search bar sticky please?

    ihor developer

    Unfortunately there’s no simple fix for this, because there’s no search form in the header section by default and this sticky section would be too large.

    Greebochek

    what about the wordpress admin panel? everything breaks after the code from ihor

    ihor developer

    If you mean the admin toolbar there may be issues since it also requires padding, I just posted a sample snippet – it requires testing and further customizations.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.