Reply To: Wrap span around menu item

Home Forums Support Wrap span around menu item Reply To: Wrap span around menu item

Home Forums Support Wrap span around menu item Reply To: Wrap span around menu item

#201756
Marcel

Hi,
thanks for getting back so quick.

In the navigation.php from the inc directory I added the link_before and link_after inside here (line 94):

wp_nav_menu( 
array( 
	'theme_location' => 'primary',
	'container' => 'div',
	'container_class' => 'main-nav',
	'container_id' => 'primary-menu',
	'menu_class' => '',
	'fallback_cb' => 'generate_menu_fallback',
	'link_before' => '<span>',
	'link_after' => '</span>',
	'items_wrap' => '<ul id="%1$s" class="%2$s ' . join( ' ', generate_get_menu_class() ) . '">%3$s</ul>'
				) 

I’m using Menu Plus with a sticky menu by the way. I don’t know if have to adjust other files as well or if I have to switch to jquery to force the span around.

Would be great if you could get me on the right track with this.

All the best
Marcel