2018-12-02, 21:23:04
If you can't do it with CSS as Shawn suggests, another way could be this:
Create a functions.php file in your theme folder and paste this in the file:
(If you theme already had a functions.php file, paste in it everything but the first line.)
Create a functions.php file in your theme folder and paste this in the file:
Code:
<?php defined('IN_GS') or die();
add_filter('menuitems','add_span_to_nav_links');
function add_span_to_nav_links($nav='') {
return str_replace('##TMP##','"><a',str_replace(array('">','</a>'),array('"><span>','</span></a>'),str_replace('"><a','##TMP##',$nav)));
}
// end
(If you theme already had a functions.php file, paste in it everything but the first line.)