WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. lukelukeluke
    Member
    Posted 8 months 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?

    Luke

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

  2. malihu
    Member
    Plugin Author

    Posted 7 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic