• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Anchor links scrolling too far content behind navigation

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Anchor links scrolling too far content behind navigation

This topic is: not resolved

Tagged: anchor point, HTML anchor, HTML bookmark, Scroll Point

  • This topic has 7 replies, 3 voices, and was last updated 8 years, 2 months ago by patrj.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • February 23, 2017 at 7:26 am #201814
    James Roberts
    Member

    Hi,

    I've added a number of anchors to posts but when you click on a link that includes the anchor, the point where the anchor is ends up behind the top navigation. Is there an automated way around this please?

    Thanks,

    James

    https://total-pitch.com/2017/01/19/equity-crowdfunding-i-learnt-three-years-crowdcube-pt-1/#killerquestions
    February 23, 2017 at 12:54 pm #201838
    Brad Dalton
    Participant

    Can you find a id class in the HTML located under the nav?


    Tutorials for StudioPress Themes.

    February 27, 2017 at 4:47 am #202063
    James Roberts
    Member

    Hi Brad, thanks for replying.

    I've had a look in the source for an ID after the nav and hero image (up to line 281) and there isn't one there but could I manually add <class id="top"> in the Text view of the editor to each page or post?

    Thanks again,

    James

    February 27, 2017 at 8:16 am #202076
    Brad Dalton
    Participant

    Sure can.

    You can hook the div id in anywhere using genesis hooks with conditional tags.


    Tutorials for StudioPress Themes.

    February 27, 2017 at 8:35 am #202077
    James Roberts
    Member

    Sorry Brad, but I'm none the wiser - how does adding <class id="top"> stop the anchored content I'm linking to being covered by the navigation? I know it's probably a numpty question but I'm pretty new to this.

    Thanks again,

    James

    February 27, 2017 at 8:41 am #202079
    Brad Dalton
    Participant

    Link to the URL where you have added the HTML for the bookmark.


    Tutorials for StudioPress Themes.

    February 27, 2017 at 10:39 am #202090
    James Roberts
    Member

    Hi,

    I've tried adding an anchor e.g. <a name="smart"></a>. I've also tried using an ID instead of name e.g. <a ID="smart"></a>. When I link to them e.g.https://total-pitch.com/2017/01/19/equity-crowdfunding-i-learnt-three-years-crowdcube-pt-1/#smart the page loads in pretty much the right place but the point where the anchor / ID is in the HTML sits behind the navigation. I'm obviously missing something but I don't know what.

    Thanks,

    James

    April 22, 2017 at 10:58 am #205157
    patrj
    Member

    I'm having the same problem. My workaround is to put the id tag several lines above where I want the #tag to land. I'd rather do it correctly than use a workaround. Did you get a solution?

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble