Home>Support>Sticky menu X anchor sections

Sticky menu X anchor sections

So, I’m trying to make an onepage website, using vantage theme. And I’m having trouble with the sticky menu, as it hides the anchor sections behind it, that are aligned to the top.

In order to prevent this, I was using this code:

h1:before {
	display: block;
	content: " ";
	margin-top: -200px;
	height: 200px;
	visibility: hidden;
}

And it was working very good, until I changed the metaslider for one of mine, and then starts do appear the “block” that I wish was hidden from visibility.

Someone knows something about it?

Thank you!

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Larissa,

    I would personally suggest switching to a plugin based solution as CSS methods to do this, as you’ve experienced, can be unreliable. We recommend the excellent Page scroll to id. Once installed please navigate to WP AdminSettingsPage scroll to id and then tick Enable on WordPress Menu links and set the offset to either a manual amount or #masthead

    How does that look?

    • 8 years, 2 months ago Larissa Castanheira

      Hi, Alex.

      first, thank you. second, it’s not working properly. Even commanding the offset to #masthead or 200px.. simply doesn’t work, the navigation menu is still in front of the content.

      Is there any extra configuration? or do i need to set up manually some code?

  2. 8 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Larissa,

    Would it be possible for you to create a temporary admin account for us so we can log in and take a look?

  3. 8 years, 2 months ago Private Message - Alex S Hi, I Work Here

    This is a private message.

  4. 8 years, 2 months ago Private Message - WordPress

    This is a private message.

    • 8 years, 2 months ago Private Message - Larissa Castanheira

      This is a private message.

      • 8 years, 2 months ago Private Message - Alex S Hi, I Work Here

        This is a private message.

  5. 8 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Larissa,

    Spotted the issue. Your links aren’t correct.

    You were using:

    http://your.website/pagename#example

    It should be either:

    http://your.website/pagename/#example

    Or just:

    #example

    I changed your offset to 200 rather than a selector.

  6. 8 years, 2 months ago Larissa Castanheira

    Thanks!

    It’s all good now!

    =)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More