How To Remove Sticky Menu In Twenty Seventeen, And Make It UnSticky

Posted on 6 March 2017 in Twenty Seventeen Theme Customisation
Comments: 11

The default main menu in Twenty Seventeen sticks to the top of the page after the header scrolls off the top of the page. The sticky behaviour can be removed, and the menu can be made to move off the top of the page.

The default sticky main menu.

The sticky main menu removed, and made unsticky.

Where and how to make the menu main not sticky:

In WordPress Admin > Appearance > Edit CSS.

Enter the CSS code below.

The CSS code:

.site-navigation-fixed.navigation-top {
	/* bottom: auto; */
	position: relative;
	/* left: 0; */
	/* right: 0; */
	/* top: 0; */
	/* width: 100%; */
	/* z-index: 7; */
}
Share this:

Tags


Comment, ask or share something...

  1. Hello, This didn't seem to work for me. I would like to remove the navigation bar completely since my site only needs one page at the moment. I pasted the code to the css and nothing changed. I also tried adding it through the customization option in the dashboard.

    Reply

    1. Joe,
      I just put the code into the CSS of the customizer and it works -- the menu scrolls off the top of the page.
      The CSS has not been created to remove the menu completely, but to allow it to scroll off the top of the page with the header.

      Reply

  2. Hello,

    Thank you for your insights.

    I would love if you could make a post on how to move site title and logo from over sticky menu to the menu itself on twenty seventeen - like on this blog.

    Best regards,
    Matthew

    Reply

            1. Thank you Matthew,
              On looking at the link, the solution is simpler than what I was thinking you wanted. I may have misread your original request and can only apologise. You have implemented it well on your site. I will leave the link here for others to use and if there are any implementation issues then I can write a separate tutorial on this site for it.

              Reply

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
Do NOT follow this link or you will be banned from the site!