• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Wrap Primary & Secondary Menu Links with span tag

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Wrap Primary & Secondary Menu Links with span tag

This topic is: not resolved

Tagged: menus, primary meny, secondary menu

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 9 months ago by Alessandra.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 1, 2013 at 8:47 pm #65039
    Alessandra
    Member

    Hi!

    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.

    Like this: <a href="#"> <SPAN>LINK ANCHOR TEXT</SPAN> </a>

    Is there any function or filter i can use to accomplish this?

    Thank you!

    October 3, 2013 at 7:39 pm #65298
    Alessandra
    Member

    no one? =(

    October 3, 2013 at 8:21 pm #65304
    emasai
    Participant

    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
    Lynne emasai.com

    October 19, 2013 at 5:48 am #67619
    Alessandra
    Member

    Its not for style purpose.

    I want to include itemprop="name" to the schema NavigationElement markup.

    =/

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble