I'm trying to add the standard Bootstrap nav-link
class to the anchors rendered by the WordPress menu.
I can pass variables to the
wp_nav_menu()
which applies a class to the menu (and remove the containing):<?php wp_nav_menu(array( 'theme_location' => 'header-menu', 'menu_class' => 'navbar-nav', 'container' => 'false' ) ); ?>
I then use the WordPress Appearances > Menu UI to apply
nav-item
class to<li>
tags.
How do I apply a class to the WordPress menu anchor tags?