• Resolved jamesbw

    (@jamesbw)


    Could anyone tell me how I can fix the button text disappearing when I scroll on my page?

    Thanks for any help.

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

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

    (@malihu)

    You have the following CSS in your stylesheet:

    .main-navigation a:hover, a.mPS2id-highlight {
        color: #a07e49 !important;
    }

    This makes the button text color the same as the button background color, thus it seems to “disappear”.

    Not sure if you added this CSS or someone else(?)

    If you want to keep the menu highlight color, you should change your CSS to:

    .main-navigation a:hover, .main-navigation a.mPS2id-highlight {
        color: #a07e49 !important;
    }

    otherwise, if you leave it to: a.mPS2id-highlight it’ll change the color of all in-page links including your off-menu buttons.

    Thread Starter jamesbw

    (@jamesbw)

    Thanks so much for your help, that has worked a treat!

    Thread Starter jamesbw

    (@jamesbw)

    That fixed my button problem, but now when I scroll down the page my active highlighting doesn’t work? It only seems to work if the menu items are clicked. Could you tell me how to fix this please?

    Thanks for any help.

    Plugin Author malihu

    (@malihu)

    You have a typo in your CSS. This is what I get:

    #home { 
        max-height: 0px;
    
    .main-navigation a:hover, .main-navigation a.mPS2id-highlight { 
        color: #a07e49 !important;
    }

    which is missing an closing } on the first selector. The above should be:

    #home { 
        max-height: 0px;
    } 
    .main-navigation a:hover, .main-navigation a.mPS2id-highlight { 
        color: #a07e49 !important;
    }
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Button text disappearing when scrolling’ is closed to new replies.