Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1392132
    mrsnooch
    Participant

    Hi,

    regarding https://www.kathygrahamstrategies.com

    I didn’t like the red box-shadow that appeared when hovering over a menu so hid it using;

    .x-navbar .desktop .x-nav > li > a:hover, .x-navbar .desktop .x-nav > .x-active > a, .x-navbar .desktop .x-nav > .current-menu-item > a {
    	box-shadow: inset 0 0 0 0;
    }

    However I would like there to be a #711b45 colored bottom border when I hover over the menu. How can I achieve this?

    Thanks
    Mark

    #1392179
    Prasant Rai
    Moderator

    Hello Mark,

    Thanks for writing in!

    You can add this under Custom > CSS in the Customizer:

    .x-navbar .desktop .x-nav > li > a:hover {
        border-bottom: 2px solid #711b45;
    }

    Thanks.

    #1392204
    mrsnooch
    Participant

    Thanks Prasant Rai,

    Just as a follow up, how do I make the current menu item remain this color?

    Thanks
    M

    #1392275
    Joao
    Moderator

    Update the code above to

    .x-navbar .desktop .x-nav > li > a:hover , .x-navbar .desktop .x-nav > li > a:active {
        border-bottom: 2px solid #711b45;
    }

    Hope it helps

    Joao

    #1396608
    mrsnooch
    Participant

    Hi Joao,

    I modified your code slightly to make the font color also #711b45, but it doesn’t seem to work for active. It works perfectly on hover, but not for active links?

    Code I’m using is

    .x-navbar .desktop .x-nav > li > a:hover , .x-navbar .desktop .x-nav > li > a:active {
        border-bottom: 2px solid #711b45;
        color: #711b45;
    }
    
    .x-navbar .desktop .x-nav > li > a:hover, .x-navbar .desktop .x-nav > .x-active > a, .x-navbar .desktop .x-nav > .current-menu-item > a {
    	box-shadow: inset 0 0 0 0;
    }

    Thanks
    Mark

    #1396883
    Friech
    Moderator

    Hi Mark,

    In that case, please let us inspect your site. Currently it is under maintenance mode, please provide us login credentials in private reply or disable the maintenance mode for a while.

    Thanks.

    #1396896
    mrsnooch
    Participant
    This reply has been marked as private.
    #1397313
    Paul R
    Moderator

    Hi Mark,

    Kindly change your code to this.

    
    .x-navbar .desktop .x-nav > li > a:hover, 
    .x-navbar .desktop .x-nav > .x-active > a, 
    .x-navbar .desktop .x-nav > .current-menu-item > a {
          border-bottom: 2px solid #711b45;
          color: #711b45;
          box-shadow:none;
    }
    

    Hope that helps.

    #1397787
    mrsnooch
    Participant

    Hi Paul,

    I’m afraid this actually makes matters worse.

    It adds the top purple line that I wanted removed, and it also takes away the purple color of the text on hover links, but still doesnt add to the active links.

    The confirm, what I would like is links are black by default.
    When you hover, you get a 711b45 line underneath as well as the font color being 711b45 also
    Active links maintain the 711b45 font color.

    Thanks
    Mark

    #1398268
    Friech
    Moderator

    Hi Mark,

    I did go ahead and merge this two css blocks.

    .x-navbar .desktop .x-nav > li > a:hover , .x-navbar .desktop .x-nav > li > a:active {
        border-bottom: 2px solid #711b45;
        color: #711b45;
    }
    
    /*Styles color of menu highlight*/
    .x-navbar .desktop .x-nav > li > a:hover, .x-navbar .desktop .x-nav > .x-active > a, .x-navbar .desktop .x-nav > .current-menu-item > a {
    	box-shadow: inset 0 0 0 0;
    }

    To this:

    /*Styles color of menu highlight*/
    .x-navbar .desktop .x-nav > li > a:hover,
    .x-navbar .desktop .x-nav > li > a:active,
    .x-navbar .desktop .x-nav li.current-menu-item a {
    	box-shadow: inset 0 0 0 0;
    	border-bottom: 2px solid #711b45;
        color: #711b45;
    }

    You should get the style for hover and active now.


    screenshot

    Make sure to clear your browser’s cache before previewing the page.

    Cheers!

    #1398284
    mrsnooch
    Participant

    Hi Friech,

    My apologies. Even running the site in incognito or clearing the cache still didn’t reset the changes until my browser coincidentally crashed, then it all loaded up fresh.

    No idea what happened but it’s working now so many thanks for your help!
    Sorry for confusion!

    Mark

    #1398707
    Friech
    Moderator

    Hi Mark,

    It could be one of your browser extension is interfering with the customizer. Try using another browser or deactivating the extension and see if the customizer still crash.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1392132 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>