• 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

melriksdesign

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 21, 2014 at 3:00 pm in reply to: Add Class to Structural Divs #135028
    melriksdesign
    Member

    Thanks. I'll check out the references.

    As to the why, I need to use a framework with more columns. Genesis only has six column widths (thirds, fourths, sixths), but my clients' site needs upwards of 16 columns and all the columns are fixed width (pixels). To make the other framework operational, I need a special class of "container" added to the structural divs. Without the container class, the framework divs don't work.

    December 8, 2014 at 4:45 am in reply to: Adding a tag inside of the navigation links #133970
    melriksdesign
    Member

    Unfortunately, this affected every link on the page.

    I ended up removing the child theme nav and replacing it with WorPress' navigation which has a built in method for adding html before and after the link. Bummed that this wasn't easy with Genesis.

    December 7, 2014 at 7:16 pm in reply to: Adding a tag inside of the navigation links #133937
    melriksdesign
    Member

    For anyone looking to add spans to your nav links, this tutorial will get you part of the way there.

    http://www.wpstuffs.com/add-menu-description-in-genesis/

    With a little editing, you'll get spans inside your anchors. Change the class to what you need it to be. Replace the nbsp with text (if desired).

    function be_add_span( $item_output, $item ) {
     return preg_replace( '/(<a.*?>[^<]*?)</', '$1' . '<span class="my-image">&nbsp;</span><', $item_output);
    }
    add_filter( 'walker_nav_menu_start_el', 'be_add_span', 10, 2 );
    
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

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