-
wp_nav_menu() function: How to remove Classes and IDs
In this post you will learn how to remove all default class and IDs from the wp_nav_menu(). The WordPress wp_nav_menu() function comes default with almost every Free WordPress Theme. This function displays a navigation menu which allows you to navigate to most part of your website, eg: Home – Blog – Contact etc. wp_nav_menu() comes with default IDs and Classes for easy styling of the menu such as: class=”menu-main-container“ id=”primary-menu“ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-home menu-item-80“ class=”menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-71 current_page_item current_page_parent menu-item-82“ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-81“ The default classes and IDs help developers to style the menu of their WordPress Themes or websites. Truth be told, all of these classes and IDs do not…