Page scroll to id
[resolved] Current menu item style (2 posts)

  1. lukelukeluke
    Posted 1 year ago #

    Hi, I use this plugin (which is great by the way!) to navigate through a page from a normal wp menu.

    I can't work out how to make the current menu item have a different style to the other menu links?

    i.e. when you click on MENU LINK 1, the page scrolls and that link has a highlighted effect.

    I hope that makes sense!

    Any ideas?



  2. malihu
    Plugin Author

    Posted 1 year ago #

    I've added links highlighting feature on plugin version 1.5.1.
    The script adds a class (default: mPS2id-highlight) automatically on links whose target elements are considered to be within the viewport. You can use .mPS2id-highlight in your CSS to style the "current" menu item(s).

    The plugin also adds the class mPS2id-clicked on links that are clicked and mPS2id-target on the target elements that are considered to be within the viewport.

    These are ready-to-use classes so you can use them directly in your theme's css.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Page scroll to id
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic