Support » Plugin: Page scroll to id » highlight class not being assigned

  • Resolved mw360


    Added this to Genesis ‘Altitude Pro’ theme… and chose to assign to all menu links.

    It is pretty much a one-page theme using #front-page-1, #front-page-2, etc.

    Seems to work partially – with Developer Tools I can see ‘_mPS2id-h’ class added to each menu item, and ‘mPS2id-clicked’ gets properly assigned after clicking a menu item.

    But I believe the ‘mPS2id-highlight’ class is supposed to invoke as well, during page scroll, to allow highlighting of the menu items based on scroll position, correct? At no point do I see this class get added. I must be missing something. What else needs to be done for the -highlight assignment to function?


Viewing 5 replies - 1 through 5 (of 5 total)
  • Tracked it down to human error, the way the hash links were entered, appears resolved now.

    • This reply was modified 1 year, 10 months ago by  mw360.
    • This reply was modified 1 year, 10 months ago by  mw360.

    Marked as resolved

    Plugin Author malihu


    Yes the mPS2id-highlight class should be assigned (along with few others like mPS2id-highlight-first and mPS2id-highlight-last (this is done automatically).

    Firstly, make sure your links href/URL matches exactly the URL shown in browser’s address bar. For example a missing www part might cause the issue.

    Also try to investigate (via dev tools) the target elements. Are there elements with id front-page-1, front-page-2 etc. in the HTML?
    If those exist, check their height. Depending how you added those, their height might be close to zero so they switch the highlight classes very fast.

    I just checked your theme’s demo ( and I see that the links URL are in the form of /altitude/#front-page-2. If your links are like this, try changing them to use the full URL of your site. For example, change the URLs:

    Plugin Author malihu


    You beat me and I’m usually fast 🙂

    Yes, exactly, it was the format of the url (/ in front) … I usually try to reserve a support question for when I feel I am out of ideas, so that I’m not wasting the developers time – the fact that I figured it out quickly tells me that I should have waited before posting here. So sorry for that!

    But thanks for the quick response & description, I’m sure it will be helpful to others going forward…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘highlight class not being assigned’ is closed to new replies.