one menu-item didn’t get current class

[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 CDHeumann.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer