wordpress - menu without label wp -


i have menu on wordpress using this

<?php wp_nav_menu( array( 'sort_column' => 'menu_order','menu_class' => 'navlink', 'container' => false, 'theme_location' => 'header-menu') ); ?> 

the output this

<div class="navlink"> <ul> <li class="page_item page-item-2 current_page_item active"><a href="http://michaelpon.tk/about/">about</a></li> <li class="page_item page-item-6"><a href="http://michaelpon.tk/skills/">skills</a></li> <li class="page_item page-item-4"><a href="http://michaelpon.tk/project/">project</a></li> <li class="page_item page-item-8"><a href="http://michaelpon.tk/contact/">contact</a></li> </ul> </div> 

now want display menu without labels about, skills... possible? tried using menu , display via widgets menu won't allow me add pages without labels. automatically removes page menu.

like this.

<li class="page_item page-item-2 current_page_item active"><a href="http://michaelpon.tk/about/"></a></li> <li class="page_item page-item-6"><a href="http://michaelpon.tk/skills/"></a></li> <li class="page_item page-item-4"><a href="http://michaelpon.tk/project/"></a></li> <li class="page_item page-item-8"><a href="http://michaelpon.tk/contact/"></a></li> 

is possible way other using static html? i'm using foundationpress theme.

i display label of menu using pseudo element fiddle here

ok, understand problem. can using jquery. have add class particular menu in want remove label.

add code header.php file

<script>   $(document).ready(function(){     $('.your-menu-class').find('a').html('');   }); </script>  

don't remove page title admin-side menu-setup.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -