• First off, FABULOUS plugin. Finding a solution to the smooth scroll from one page to another has been an absolute nightmare. Your plugin really made my day.

    Because the website I’m working on has multiple pages, I require the use of .current-menu-item to identify the active interior pages. Unfortunately the plugin applies .current-menu-item to all menu items which of course causes the css for .current-menu-item to apply to inactive items as well.

    What is the solution to this problem?

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

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

    (@malihu)

    Hello,

    The plugin does not apply the .current-menu-item. This is a class applied by WordPress itself to help identify menu items.

    Are you using WP3 menu system?
    If you’re using custom links in your WP menu, you can’t really use the .current-menu-item class as WordPress cannot associate directly a custom URL to a page or post.

    Maybe using absolute URL (instead of relative) in your menu solves the issue but I can’t really say unless I see your page.

    If you could send me a link or post some code/more info I might be able to help.

    Thread Starter triplemoons

    (@triplemoons)

    http://goo.gl/TReXuM

    If you go to Gallery you will note that their is no active state styling on the menu like their should be. This is because to do so requires that I use .current-menu-item and I can use that as it’s applied to the Page Scroll to ID plugin links and setting the styling will make them all look active.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need the use of both .mPS2id-highlight-first AND .current-menu-item…’ is closed to new replies.