• 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

Adding span class to navigation 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 › Design Tips and Tricks › Adding span class to navigation menu

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 12 years, 6 months ago by Gary Jones.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 16, 2013 at 8:20 pm #51087
    conster
    Member

    Can someone help me figure out the code to add span class before and after link (see example below) so I can add it to my functions.php file? I need the span so I can add left and right images to each of navigation menu items on the Corporate theme. Thanks in advance for any help.

    <li>
    <a href="&quot;&quot;">
    &lt;span class=&quot;leftcorner&quot;&gt;&lt;/span&gt;
    &lt;span class=&quot;middle&quot;&gt;Home&lt;/span&gt;
    &lt;span class=&quot;rightcorner&quot;&gt;&lt;/span&gt;
    </a>
    </li>
    
    August 25, 2013 at 6:47 pm #58804
    Gary Jones
    Member

    Have you considered using the :before and :after pseudo-classes in CSS instead?


    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

© 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