Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #878265
    c1s
    Participant

    Hi,

    i added the class “Terminfarbe” to the navbar item “Termin buchen!” and added the css in the customizer to change the font color of this menu item (this works! ;-).

    To match the colors, the indicator of this navbar menu item should have the same color as the font.

    How can i achieve this?

    Thanks

    #878271
    c1s
    Participant
    This reply has been marked as private.
    #878884
    Nabeel A
    Moderator

    Hi there,

    To achieve this, just add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:

    .Terminfarbe a:hover>span {
        box-shadow: 0 2px 0 0 #49AACD !important;
    }

    Let us know how this goes!

    #879682
    c1s
    Participant

    That helped a lot – thanks very much !!

    In addition, I would like to have the same color of that box-shadow, when the item is selected.

    I tried

    Terminfarbe > a:active> a {
        box-shadow: 0 2px 0 0 #38a2c9 !important;
    }

    and the same with “span” but no luck.

    Please could you show me how that can be done?

    Thanks!!

    #880050
    Paul R
    Moderator

    Hi,

    Please add a dot before Terminfarbe in your code.

    eg.

    
    .Terminfarbe > a:active> a {
        box-shadow: 0 2px 0 0 #38a2c9 !important;
    }
    

    Hope that helps.

    #880086
    c1s
    Participant

    I am sorry this didn’t solve the problem

    #880973
    Nabeel A
    Moderator

    Hi again,

    Please replace the previous code with this one:

    .Terminfarbe.current-menu-item > a > span {
        box-shadow: 0 2px 0 0 #43A6CB !important;
    }

    Let us know how this goes!

    #881671
    c1s
    Participant

    That’s working great thanks a lot!

    #882012
    Zeshan
    Member

    You’re welcome! 🙂

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