function main_nav() {
wp_nav_menu(
array(
'menu' => 'main_nav',
'theme_location' => 'main_nav',
'container_class' => 'menu clearfix',
'link_before' => '<span>',
'link_after' => '</span>',
'fallback_cb' => 'bones_main_nav_fallback'
)
);
}
I'm trying to use link_before and link_after to append a span tag to the wp_nav_menu so so that I may add an icon to each navigation.
Example:
<li><span><img src="home.gif" /></span><a href="home.php"> Home</a></li>
I am super super new to php and wordpress. Any ideas on how to tackle this?
Secondary question, Adding a css-class to the "current active state" anchor? Just for styling.