• Resolved m.spierings

    (@mspierings)


    Hi,

    I have used this plugin for a couple of websites, with no trouble.
    But with a duplication of an existing (working theme) I notice that some of the links in the menu are not picked up by the plugin.

    I can show you the source of the nav:

    <ul id="menu-primary-navigation" class="nav navbar-nav">
        <li class="active menu-home"><a rel="m_PageScroll2id" href="/#top" class=
        "_mPS2id-h">HOME</a></li>
    
        <li class="active menu-what"><a href="/#what">WHAT</a></li>
    
        <li class="active menu-how"><a rel="m_PageScroll2id" href="/#how" class=
        "_mPS2id-h">HOW</a></li>
    
        <li class="active menu-features"><a href="/#features">FEATURES</a></li>
    
        <li class="active menu-pricing"><a rel="m_PageScroll2id" href="/#pricing" class=
        "_mPS2id-h">PRICING</a></li>
    
        <li class="active menu-demos"><a rel="m_PageScroll2id" href="/#dem" class=
        "_mPS2id-h">DEMOS</a></li>
    
        <li class="active menu-contact"><a rel="m_PageScroll2id" href="/#where-we-are" class=
        "_mPS2id-h">CONTACT</a></li>
      </ul>

    As you can see a couple of menu items don’t get the REL attribute.
    I have no idea what is causing this. I don’t see any markup errors and no JS errors.
    Does anyone have a clue?

    https://ww.wp.xz.cn/plugins/page-scroll-to-id/

Viewing 1 replies (of 1 total)
  • Thread Starter m.spierings

    (@mspierings)

    okay….I found it.
    Colleague of mine duplicated the menu and I wasn’t aware anymore of having to add the rel manually until I did a global search in my theme and found the docs sections about:

    To add rel="m_PageScroll2id" to links in custom menus (menus created in Appearance › Menus), do the following:
    15: While on the Menus admin page, click “Screen Options” and check “Link Relationship (XFN)”. To enable the plugin on a menu item, click the arrow on the right of the item and insert m_PageScroll2id in the “Link Relationship (XFN)” field (assuming your menu contains links with “URL” value in the form of #id).

    Now I saw that some new menu’s didn’t have that link relationship…duh!!!

Viewing 1 replies (of 1 total)

The topic ‘Not all hyperlinks are working’ is closed to new replies.