WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Current menu item style

[Resolved] Current menu item style

  • 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?

    Luke

    http://wordpress.org/plugins/page-scroll-to-id/

Viewing 1 replies (of 1 total)
  • Plugin Author malihu

    @malihu

    Hello,
    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Current menu item style’ is closed to new replies.