• Resolved kpwebteam

    (@kpwebteam)


    Hi there,

    Great plugin by the way. I set up some anchor links on a page with a sticky sidebar menu which works fine. I added your plugin and everything works except that it seem the ‘-first’ classes are not being added. I want this to avoid the double highlighting that occurs. I tried every combo: checking and unchecking the ‘only one at a time’, modifying the class call, etc. But I did realize that as I use the different anchor links, the highlight-first class is NOT being added. Help please.

    The page I need help with: [log in to see the link]

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

    (@malihu)

    Hello,

    The -first class is added to an off-viewport element. The class is added on an anchor element with URL #content which is hidden.

    To avoid this, you need to set which links you want to highlight. Go to plugin settings and set “Highlight selector(s)” value to:

    .vcex-navbar-inner > a

    This will make the plugin highlight only the aside menu links (“Overview”, “Our Research” etc.)

    Save changes and change your CSS to use the -first class, e.g.:

    .page-content-side-menu a.mPS2id-highlight-first {
    border-left: 2px solid #0078b3;
    }

    Let me know

    Thread Starter kpwebteam

    (@kpwebteam)

    OH man, thanks so so much. This did the trick perfectly. You rock!

    Plugin Author malihu

    (@malihu)

    Cool ??

    Marking this as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘-first class not being added’ is closed to new replies.