• Resolved partopia1

    (@partopia1)


    Hi,

    I have tried navigating through multiple threads on this forum but I wasn’t able to find any solutions that worked for me.

    The page is built with elementor and using the elementor hello theme.
    I’m trying to use anchor texts in the menu and menu anchors on the page but when I scroll in between two of the sections (such as Services and Plans), then it highlights both. How can I only highlight one at a time?

    current settings in the plugin:

    selectors: a[href*=’#’]:not([href=’#’])
    offset: 150px
    highlight selectors: .elementor-7204 .elementor-item
    [x] Allow only one highlighted element at a time
    [x] Prevent other scripts from handling plugin’s links (if possible)

    Thank you 🙂

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

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

    (@malihu)

    Hello,

    Is the plugin activated in http://247iptv.eu3.org so I can check what happens?

    Thread Starter partopia1

    (@partopia1)

    Hi,
    I have reactivated it now for you.
    Thanks!

    Plugin Author malihu

    (@malihu)

    OK. The highlight you see does not come from “Page scroll to id”. It comes from either your theme or another plugin. That’s why when you had “Page scroll to id” deactivated the highlight issue was still there.

    This is what you need to do:

    1)The “Highlight selector(s)” option value you set is not correct (there’s no .elementor-7204 element in your page).

    In plugin settings change the “Highlight selector(s)” option value to:

    #menu-1-e1460a4 .menu-item a

    Also, add the following value in “Prevent other scripts from handling plugin’s links selector(s)” option field:

    #menu-1-e1460a4 .menu-item a[href*='#']:not([href='#'])

    Hit save changes.

    2)Add the following CSS to your theme (e.g. in admin > appearance > customize > additional css):

    .elementor-112 .elementor-element.elementor-element-e1460a4 .elementor-nav-menu--main .elementor-item.elementor-item-active:not(.mPS2id-highlight), 
    .elementor-112 .elementor-element.elementor-element-e1460a4 .elementor-nav-menu--main .elementor-item.highlighted:not(.mPS2id-highlight){
        color: #fff !important;
        fill: #fff !important;
    }
    
    .elementor-item.elementor-item-active:not(:hover):not(:focus):not(.mPS2id-highlight):after, 
    .elementor-item.elementor-item-active:not(:hover):not(:focus):not(.mPS2id-highlight):before, 
    .elementor-item.highlighted:not(:hover):not(:focus):not(.mPS2id-highlight):after, 
    .elementor-item.highlighted:not(:hover):not(:focus):not(.mPS2id-highlight):before{
        opacity: 0 !important;
    }

    This will reset the css rules that are highlighting the link you see now and use “Page scroll to id” highlighting instead.

    Test your page and let me know

    Thread Starter partopia1

    (@partopia1)

    This worked!!!!!! Thank you! Great service, wow. Where can I give you a 5 star rating?

    Plugin Author malihu

    (@malihu)

    @partopia1 Awesome! You’re welcome 🙂

    You can add your review in plugin reviews:

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

    Thanks

    Thread Starter partopia1

    (@partopia1)

    Hi,
    Sorry to bug you – I had to reinstall a fresh copy of wordpress on the website since it was crashing and I followed your steps again but for some reason it isn’t working now.
    Could you take a quick look, please? thank you

    Plugin Author malihu

    (@malihu)

    @partopia1 No problem.

    It seems .elementor-112 has changed. Add this to your CSS:

    .elementor-3520 .elementor-element.elementor-element-e1460a4 .elementor-nav-menu--main .elementor-item.elementor-item-active:not(.mPS2id-highlight){
    	color: #fff !important;
        fill: #fff !important;
    }
    Thread Starter partopia1

    (@partopia1)

    Thanks! that seems to have fixed it.
    You’re a genius 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘two menu items highlighted at once, elementor’ is closed to new replies.