[ad_1]
I’ve a menu with some menu items. Every menu item get a current class if current but one not – instead the menu item besides get the current class:
“Magazin” – the menu item with no current class:
Page that shows posts from custom post type
body class:archive post-type-archive post-type-archive-kundenmagazin wp-custom-logo mega-menu-menu-1 hfeed no-sidebar
menu item class if active:mega-menu-item mega-menu-item-type-post_type mega-menu-item-object-page mega-align-bottom-left mega-menu-flyout mega-menu-item-98
“Aktuelles” – menu item that get current class if “Magazin” is active:
Blog page that shows the standard “posts”
body class:blog wp-custom-logo mega-menu-menu-1 hfeed no-sidebar
menu item class if “Magazin” is clicked:mega-menu-item mega-menu-item-type-post_type mega-menu-item-object-page mega-current_page_parent mega-align-bottom-left mega-menu-flyout mega-menu-item-95
- This topic was modified 6 hours, 31 minutes ago by .
