• 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

Social Media at Top

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 › Social Media at Top

This topic is: not resolved
  • This topic has 5 replies, 5 voices, and was last updated 7 years, 10 months ago by MoodyRiviera.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 11, 2015 at 12:53 pm #151751
    defree99
    Participant

    I'm using the Enterprise Pro theme here:

    http://tinyurl.com/ltrtyrx

    1) At the top of the page I have a secondary navigation menu.

    2) I want to keep the blue background but instead of menu items, I want to put a row of Social Media Icons

    3) How can I do this?

    May 11, 2015 at 1:39 pm #151762
    Hiker
    Member

    Great question


    ReneeStern.com

    May 11, 2015 at 7:57 pm #151807
    brock
    Member

    Hey, I got an answer to this solution from Sridhar Katakam. The solution comes from him and I am passing it along to you.

    The following code snippet should go in your functions.php file. It creates a new widget area called 'top-bar' and hooks it to the 'genesis_before_header' hook.

    
    genesis_register_sidebar( array(
        'id'          => 'top-bar',
        'name'        => __( 'Top Bar', 'enterprise' ),
        'description' => __( 'This is the top bar for placing social icons.', 'enterprise' ),
    ) );
    
    add_action( 'genesis_before_header', 'sk_top_bar' );
    function sk_top_bar() {
        genesis_widget_area( 'top-bar', array(
            'before'    => '<div class="top-bar widget-area"><div class="wrap">',
            'after'        => '</div></div>',
        ) );
    }
    

    The next code snippet should go in your style.css file. It styles the previously added section.

    
    .top-bar {
        background: #5387c0;
        padding-top: 12px;
    }
    
    .top-bar .widget:last-child {
        margin-bottom: 0;
    }
    

    You will then go and add your social icon widget to the newly created 'top-bar' widget area. Thanks again to Sridhar Katakam and hope this helps you.

    May 12, 2015 at 7:06 am #151840
    defree99
    Participant

    Thank you so much!

    Worked like a charm.

    May 12, 2015 at 7:27 am #151841
    aksdfj
    Member

    it's goood that some1 can help

    May 12, 2015 at 10:01 am #151864
    MoodyRiviera
    Member

    Wow...that's cool.

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

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