Links error in the header section

Homepage Community Forums Legacy Theme Support Links error in the header section

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20661

    Hi Wes,
    please what is this? I get ane error about the broken anchor links inserted in this section and I cannot find the related section or text to delete or modify this. Can you help me to better understand what it means?

    #genesis-nav-primary
    #genesis-content
    #genesis-footer-widgets

    <body class="home page-template-default page page-id-6248 custom-background et_bloom custom-header header-image full-width-content front-page" itemscope="" itemtype="http://schema.org/WebPage">
    <div class="site-container">
    <section>
    <h2 class="screen-reader-text">Skip links</h2>
    <ul class="genesis-skip-link">
    <li>
    <a class="screen-reader-shortcut" href="#genesis-nav-primary"> Skip to primary navigation</a>
    </li>
    <li>
    <a class="screen-reader-shortcut" href="#genesis-content"> Skip to content</a>
    </li>
    <li>
    <a class="screen-reader-shortcut" href="#genesis-footer-widgets"> Skip to footer</a>
    </li>
    </ul>
    </section>

    Many thanks

    #20682
    Wes
    Moderator
      This reply has been marked as private.
      #20684

      Hi Wes,
      I’m using SEMRUSH page analytics and it suggests me to correct the wrong anchor link (like this #genesis-nav-primary) in the first section at top.
      The anchor links I mentioned exist in the code (there is a section containing this)… I would like to know where is this section code in your theme and how can I change or delete it…

      Thank you

      #20722
      Wes
      Moderator

        I’m not sure why that would happen. The #genesis-nav-primary comes from the menu. It shows up twice in your source code. It first shows up right after the .site-container

        <ul class="genesis-skip-link"><li><a href="#genesis-nav-primary" class="screen-reader-shortcut"><font><font> Skip to primary navigation</font></font></a></li><li><a href="#genesis-content" class="screen-reader-shortcut"><font><font> Skip to content</font></font></a></li><li><a href="#genesis-footer-widgets" class="screen-reader-shortcut"><font><font> Skip to footer</font></font></a></li></ul>

        Next it shows up in the Primary Nav section –

        <nav class="nav-primary fadeInUp" itemscope="" itemtype="http://schema.org/SiteNavigationElement" id="genesis-nav-primary" aria-label="Main navigation">

        The Genesis Framework itself creates the code for the Nav Menu (not the child theme) so I’m not sure how or why the error shows up.

      Viewing 4 posts - 1 through 4 (of 4 total)
      • You must be logged in to reply to this topic.