Created
September 28, 2016 17:26
-
-
Save rugor/f9f2fc47bd914f7238201a5678f44c0a to your computer and use it in GitHub Desktop.
PHP: WordPress wp_nav_menu(); nice and easy w/ span wrapper #rugor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$defaults = array( | |
'menu_class' => 'main-menu', | |
'link_before' => '<span>', | |
'link_after' => '</span>' | |
); | |
wp_nav_menu( $defaults ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment