• 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

Upgrade to 2.2.3 – How to get rid off extra span in Menu

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 › General Discussion › Upgrade to 2.2.3 – How to get rid off extra span in Menu

This topic is: resolved
  • This topic has 2 replies, 2 voices, and was last updated 10 years, 8 months ago by Victor Font.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 16, 2015 at 2:36 am #168269
    Toon61
    Member

    Hi all,

    Just upgraded a site to Genesis 2.2.3 (the latest), but now my main menu has changed.
    Instead of:
    <a href="url">Menu item name </a>
    It now reads:
    <a href="url" itemprop="url"><span itemprop="name">Menu item name</span></a>
    I guess this has something to do with accessibility or so, but at the moment this breaks my menu.
    So how do I get rid off that extra <span>?

    October 16, 2015 at 3:18 am #168271
    Toon61
    Member

    Ok,
    Figured this one out with a little 'hack': renaming the itemprop to nothing like this:

    
    add_filter( 'genesis_attr_nav-link-wrap', 'whd_genesis_attributes_nav_link_wrap', 20 );
    
    function whd_genesis_attributes_nav_link_wrap( $attributes ) {
    	$attributes['class'] = '';
    	$attributes['itemprop'] = '';
    	return $attributes;
    }
    

    Added this to my child theme functions.php.
    Now the <span> is still there but without the itemprop and that fixed my menu.

    October 16, 2015 at 5:38 am #168274
    Victor Font
    Moderator

    That is schema.org markup. It helps with SEO. Accessibility is not turned on by default.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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

© 2026 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