• 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

Navigation / Menu Descriptions

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 › Navigation / Menu Descriptions

This topic is: resolved

Tagged: backcountry, Menu description

  • This topic has 3 replies, 3 voices, and was last updated 12 years, 10 months ago by philweb.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 15, 2013 at 10:22 pm #50914
    philweb
    Member

    I want to do a Menu WITH description using Generate Theme. I saw a theme related to what i wanted: http://demo.studiopress.com/backcountry/

    This time, i want it on the primary navigation.

    Something like this: http://screencast.com/t/WHL9e2c5

    I already activated the description in the "Screen Options" on Appearance>Menus .

    I tried to 'google it' but can't find something that work

    http://www.3rhomeschool.com
    July 16, 2013 at 6:11 am #50936
    Susan
    Moderator

    You need to add the code to call it in the functions.php file. In the case of the Backcountry theme, the function is in the secondary menu, and the functions.php includes this code:

    /** Add description to secondary navigation */
    add_filter( 'walker_nav_menu_start_el', 'add_description', 10, 4 ); 
    function add_description( $item_output, $item, $depth, $args ) {
    
    	$args = (array) $args;
           
    	if ( $args['theme_location'] != 'primary' )  {
    		return preg_replace( '/(<a.*?>[^<]*?)</', '$1' . "<span class=\"menu-description\">{$item->post_content}</span><", $item_output ); 
    	}
    	else {
    		return $item_output;
    	}
    
    }
    

    You can adjust the code accordingly to reference the primary menu.

    July 16, 2013 at 8:13 am #50945
    Brad Dalton
    Participant

    Great tip Susan!


    Tutorials for StudioPress Themes.

    July 16, 2013 at 11:02 pm #51097
    philweb
    Member

    done. Thanks

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Navigation / Menu Descriptions’ is closed to new 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