• 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

Sergiu

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 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 13, 2015 at 4:19 pm in reply to: How to add social icons to secondary nav menu #156131
    Sergiu
    Member

    If I modify that line it'll move both the search box and the social icons to the main nav

    June 13, 2015 at 4:15 am in reply to: How to add social icons to secondary nav menu #156076
    Sergiu
    Member

    edit, I've currently added this code to my functions which does almost what I need. I just have to get the search box somehow on primary nav menu and align the social icons on the right of second nav menu while having the other items on that menu aligned to the left.

    // Add Social Widget Area for Primay Nav
    genesis_register_sidebar( array(
    'id' => 'nav-social-menu',
    'name' => __( 'Nav Social Menu' ),
    'description' => __( 'This is the nav social menu section.' ),
    ) );

    // Add Search to Primary Nav
    add_filter( 'wp_nav_menu_items', 'genesis_search_primary_nav_menu', 10, 2 );
    function genesis_search_primary_nav_menu( $menu, stdClass $args ){
    if ( 'secondary' != $args->theme_location )
    return $menu;

    if( genesis_get_option( 'nav_extras' ) )
    return $menu;

    ob_start();
    echo '<li id="menu-item-4439203" class="custom-social menu-item">';
    genesis_widget_area('nav-social-menu');
    $social = ob_get_clean();

    $menu_search = sprintf( '%s', __( genesis_search_form( $echo ) ) );

    return $menu . $social . $menu_search;
    }

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