Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1028262
    belayachimarouane
    Participant

    Hello,

    I have a problem with sub menus not having the same size as the main menu item. I also would love the change the background of the menu and the color of the text.

    Thanks a lot

    #1028265
    belayachimarouane
    Participant
    This reply has been marked as private.
    #1028355
    belayachimarouane
    Participant

    I also would love to keep the menu items highlights when it’s sub menu is opened.
    Thanks a lot

    #1028426
    Thai
    Moderator
    This reply has been marked as private.
    #1028543
    belayachimarouane
    Participant
    This reply has been marked as private.
    #1029247
    Friech
    Moderator

    Hi There,

    Thanks for the credentials. Navbar Links color and Navbar Links Hover color, can be change on Customizer under the Header panel.

    To change the Navbar background color, you can add this under Custom > CSS in the Customizer.

    
    .x-navbar-inner {
    	background-color: red;
    }

    Replace the red with your preferred color.

    Actually the main menu and submenu has the same size (12px), but the main menu are all uppercase hence it looks bigger.

    Add this custom CSS to make the submenu uppercase as well.

    .desktop .sub-menu a {
    	text-transform: uppercase;
    	letter-spacing: 1px;
    }

    Hope it helps, Cheers!

    #1030490
    belayachimarouane
    Participant

    Hello, it’s not the navbar color that I want to change.

    Let’s say I want to go to a page in the sub menu, I want the main menu item to be highlighted while visiting the sub menu pages.

    Thank you

    #1030504
    belayachimarouane
    Participant

    I want to know how to keep the current menu item navbar highlighted on visiting sub menu pages…

    Many thanks

    #1031350
    Paul R
    Moderator

    Hi,

    You can add this under Custom > Edit Global Javascript in the Customizer.

    
    jQuery(function($) {
        $('.current-page-parent').addClass('current-menu-item');
    });
    

    Hope that helps.

    #1031392
    belayachimarouane
    Participant

    Hello,

    Thank you for helping me out but the code didn’t work. 🙁

    #1031986
    Lely
    Moderator

    Hi There,

    Please try to update above code to this:

    jQuery(function($) {
        $('.current-menu-parent').addClass('current-menu-item');
    });

    Hope this helps.

    #1032330
    belayachimarouane
    Participant

    Fantastic thank you!

    #1032505
    Prasant Rai
    Moderator

    You are most welcome. 🙂

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