Skip to main content

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:
  • Matthew says:


    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,

  • joe says:

    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.

    • 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.

  • Andries says:

    My system complain about the : in
    position: relative;
    It says unexpected RBRACKET

  • andries says:

    sorry, I copied incorrectly

  • >