Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1225224
    unionwerft
    Participant

    Hi.

    I found a couple of code snippets for keeping the parent menu item on a subpage, e.g. here, here or here.

    However, they all only work when the parent menu item has a submenu. I my case, I created a subpage without including it in the navigation. Is there a way to make the parent menu item active on this page?

    Many thanks in advance!
    Marius

    #1225225
    unionwerft
    Participant
    This reply has been marked as private.
    #1225386
    Paul R
    Moderator

    Hi,

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

    
    .x-navbar .desktop .x-nav>li.current-page-ancestor  a {
    	border-bottom: 4px solid #EE7343;
    	color: #ee7343;
    }
    

    Hope that helps.

    #1225446
    unionwerft
    Participant

    Yep, that helped. Thank you!

    Weird, I thought a CSS only solution wasn’t possible. 😉

    #1225546
    Rahul
    Moderator

    Glad we were able to help you out!

    Let us know if we can help with anything else.

    Thank you.

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