• Hi,

    I am building a site that is basically a one page site but uses individual blog posts. All works well using a / before the id, but all menu items in my menu are highlighted. How can I disable this? I have tried setting the “force single highlight option to on, but doesn’t seem to work. Is it a CSS clash somewhere?

    walero.uk/pass to check out the site.
    Can anyone shed any light?

    Thanks

    Phil

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    I think this happens because your href attributes in your links are in the form of /#id. If you change them to the complete absolute URL (e.g. http://walero.uk/#id) highlighting should work correctly.

    Let me know if this works

    Thread Starter PhilEvans62

    (@philevans62)

    Hi,
    Thanks for getting back to be. If I add absolute urls, the menu doesn’t work at all. I’ve left them in for now so you can see what I mean.
    Thanks
    Phil

    Plugin Author malihu

    (@malihu)

    Although highlighting seems to work as expected now, I think that your theme adds its own events for clicking menu items, preventing ‘Page scroll to id’ to do its thing (at least on navigation menu items).

    By inspecting your menu links with dev tools, I see additional click, pointerdown and touchend javascript events. Those are probably added by some other plugin or the theme itself.

    Thread Starter PhilEvans62

    (@philevans62)

    Thanks. We’ll take a look at the other javascript events to see if we can fix it.
    Thanks again

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Menu Items Highlighted’ is closed to new replies.