wordpress - Replace anchor tag with span tag -


i have created custom menu having many items , sub items, markup <a href="#">item</a>but parent element need replace anchor tag span tag having class styling purpose, parent elements. should this, <span class="my-class">parent element</span>. can 1 please guide me?

you can control css applying css menu below:

<?php    wp_nav_menu( array('theme_location' => 'header-menu' ,'container_class'=> 'header')); ?> 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -