• 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

Streamline Theme – moving simple social icons above header

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 › Streamline Theme – moving simple social icons above header

This topic is: not resolved

Tagged: streamline theme

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 3 months ago by ludvig.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 8, 2013 at 12:05 pm #61370
    ludvig
    Member

    Hey,

    I am using the plugin "Simple social icons" - currently displayed in my header. I would like to move these icons above the header to the right side of the primary navigation, which is already moved above header.

    So far I've managed to register a new widget area, but it is not working properly yet, I am messing up the code somehow and I do not quite know where I am failing. Here's the code:

    functions.php

    genesis_register_sidebar( array(
    'id' => 'before-header',
    'name' => __( 'Before Header', 'streamline' ),
    'description' => __( 'This is the before header section.', 'streamline' ),
    ) );

    (and then later in the bottom of the functions.php)...

    /** Widget area navigation menu **/
    add_action( 'genesis_before_header', 'before_header' );

    Home.php

    /** Add the before header section */
    add_action( 'genesis_before_header', 'streamline_before_header' );
    function streamline_before_header() {

    /** Do nothing on page 2 or greater */
    if ( get_query_var( 'paged' ) >= 2 )
    return;

    genesis_widget_area( 'before-header', array(
    'before' => '<div class="before-header widget-area">',
    ) );

    ...

    I assume that I am not executing the hook correctly somehow. Can anyone see where I am going wrong?

    September 8, 2013 at 1:27 pm #61381
    ludvig
    Member

    I got it working by changing it to this in the functions.php file.

    /** Register new widget area **/
    genesis_register_sidebar( array(
    'id' => 'before-header',
    'name' => __( 'Before Header', 'streamline' ),
    'description' => __( 'This is the before header section.', 'streamline' ),
    ) );

    /** add the above widget hook **/
    add_action( 'genesis_before_header', 'custom_before_header' );
    function custom_before_header() {
    genesis_widget_area( 'before-header', array(
    'before' => '<div class="before-header widget-area">',
    ) );
    }

    But it didn't look very nice. I want to get the icons to the navigation area for it to look nice, but I do not understand quite how.

    October 17, 2013 at 11:48 pm #67268
    jennylynn
    Member

    Probably editing the style sheet but I don't know how to do it, I'm also looking for a solution.

    October 18, 2013 at 12:13 am #67269
    jennylynn
    Member

    I got it to work using this tutorial

    How to add a widgeted area in Navigation bar in Genesis

    October 23, 2013 at 11:14 am #68464
    ludvig
    Member

    I used the same tutorial and it worked with my "simple social icons" plugin, but looked very bad.

    So I wanted to use the "Social Media Widget" recommended in the post. But it only shows one icon per row, I can't seem to get them all to align on a single row. It is weird because I have followed the tutorial perfectly.

    Did you have the same issue?

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

© 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