• Resolved m2hewitt

    (@m2hewitt)


    Dear guys,

    i have some problem with this config:

    with the setting:

    a[rel=’m_PageScroll2id’]

    the link menú is moved to section but not scroll, but the all menus are highlight.

    with this setting:

    a[href*=#]:not([href=#])

    the menú is scrolled to the section, but the all menus are highlight.

    How can i solve the menu higlight?

    Regards,

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

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

    (@malihu)

    Hello,

    First, you need to set the “Selector(s)” (in plugin settings) to:

    a[href*=#]:not([href=#])

    The highlight you see comes from your theme (not “Page scroll to id”). It’s common for themes to style current page menu items differently, so you should edit your theme’s CSS.

    You can overwrite your theme style with the following CSS:

    #Top_bar .menu > li.current-menu-item > a._mPS2id-h{
        color: #231f20;
    }
    
    #Top_bar .menu > li.current-menu-item > a._mPS2id-h:hover{
        color: #dd3333;
    }
    
    #Top_bar .menu > li.current-menu-item > a._mPS2id-h:after{
        opacity: 0;
    }
    
    #Top_bar .menu > li.current-menu-item > a._mPS2id-h:hover:after{
        opacity: 1;
    }

    If you want to use plugin’s highlight feature, you’ll need to use plugin’s highlight classes, so you could change the above CSS to:

    #Top_bar .menu > li.current-menu-item > a._mPS2id-h{
        color: #231f20;
    }
    
    #Top_bar .menu > li.current-menu-item > a._mPS2id-h:hover, 
    #Top_bar .menu > li.current-menu-item > a.mPS2id-highlight{
        color: #dd3333;
    }
    
    #Top_bar .menu > li.current-menu-item > a._mPS2id-h:after{
        opacity: 0;
    }
    
    #Top_bar .menu > li.current-menu-item > a._mPS2id-h:hover:after, 
    #Top_bar .menu > li.current-menu-item > a.mPS2id-highlight:after{
        opacity: 1;
    }

    Hope this helps

    Thread Starter m2hewitt

    (@m2hewitt)

    Nice work malihu, thanks for your help, now is working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘highlight menú is freezed’ is closed to new replies.