menu item active class for author.php

Two built-in features of WordPress make this easy to accomplish, without any code: body tag classes, and the ability to add a class to a menu item. Any author archive pages will have the classes ‘archive’ and ‘author’ in the tag (along with others, including author-name and author-id). You can add a class to a … Read more

WordPress – Apperance > Menu

If you check the codex documentation page about the wp_nav_menu you will see that there is a param called menu, and that will allow you to target a specific menu. As pointed on the documentation you can check this: wp_nav_menu( // Use this menu ‘menu’ => ‘Project Nav’, // do not fall back to first … Read more

Having an issue with wp_nav_menu displaying custom navigation

For Bootstrap, implementing WordPress menu is a bit tricky. It needs a Custom Walker Menu class to be implemented. Here’s a complete tutorial how you can implement a WordPress Nav Menu with Bootstrap: How to Integrate Bootstrap Navbar Into WordPress Theme by Kateryna Belyaeva The Custom Walker Class can be found here on GitHub: wp-bootstrap-navwalker … Read more