Can anyone help me out on how to achieve the bellow result:
<nav class=”nav-primary” role=”navigation” itemscope=”itemscope” itemtype=”http://schema.org/SiteNavigationElement”> <ul class=”menu genesis-nav-menu menu-primary”> <li><a href=”#”> <SPAN>LINK ANCHOR TEXT</SPAN> </a></li> … … … </ul> </nav>
I am searching for a way to wrap the links from the primary and secondary menus with span tags.
<a href="#"> <SPAN>LINK ANCHOR TEXT</SPAN> </a>
Is there any function or filter i can use to accomplish this?
no one? =(
What do you want to accomplish with your span tags? To style the anchor tags you can add custom css classes into the menu or use nth-child in your css file.
Need Website Customization or a Responsive CSS fix? Contact Me
Its not for style purpose.
I want to include itemprop=”name” to the schema NavigationElement markup.
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.