Display Header Right Widget Custom Menu & Social Icons In-Line

In this tutorial, i’ll provide the CSS code which enables you to display both a custom menu widget and simple social icons widget inline when populated in the header right widget area of any StudioPress theme.

Here’s what i’m referring to:

header right widgets

Simply add this CSS code to the end of your child themes style.css file.

.site-header .widget-area {
    width: 600px;
}
 
.simple-social-icons {
    float: right;
	margin-top: 10px;
}

.widget_nav_menu {
    float: left;
}

If you want to align the social buttons to the left, simply change the code above to this:

.site-header .widget-area {
    width: 600px;
}
 
.simple-social-icons {
    float: left;
	margin-top: 10px;
}

.widget_nav_menu {
    float: right;
}

header widgets

Reduce the width of the .site-header .widget-area area to reduce the space between both widgets.

You can use this code as a guide to align other widgets you populate in the header right widget area of any StudioPress child theme.

Widgets

Simply drag in the widgets you want to display inline.

Widgets

You will need to add your own CSS to the Media Queries section of your child themes style sheet depending on which widgets you populate in the header right area.

More Tips You May Find Useful


Comments

17 responses to “Display Header Right Widget Custom Menu & Social Icons In-Line”

  1. My Altitude Pro Widgets admin page does not have a Header Right Widget Area.
    It only has Primary Sidebar, Front Page 1-7, Footer 1 and After Entry.
    How is the Header Right Widget Area activated?

    1. Brad Dalton Avatar
      Brad Dalton

      Here’s 2 methods. Not tested on Altitude Pro so they’ll probably need tweaking.

      Here’s 1 i tweaked

  2. David Thomas Avatar
    David Thomas

    Dalton, you the man.

    1. Brad Dalton Avatar
      Brad Dalton

      Sounds like it worked!

      1. David Avatar

        Yep 🙂

  3. Kristie Avatar
    Kristie

    Thanks! Just what I was looking for!

  4. I am trying to see how I can add (back) the social icons into my header now that I’ve customised it to be full width. I can’t think how to do this as the 1140px jpg accommodating my logo is now going to override that header-right widget area.

    I am using Streamline pro, which originally had social icons on the right header slot. I guess it’s case of just placing them elsewhere? I did think the right side of the primary navbar might be a good slot – do you know how I’d go about that? Thanks for any help! I’ve been scouring genesis forums for this and came across your insights on many Qs.

    1. Brad Dalton Avatar
      Brad Dalton

      You can add a widget to the right side of the nav menu in Genesis using this PHP code.

      Or you could hook in another header right widget area.

  5. Thanks for this info. How to place social media icons in Primary Navigation menu above the Header in Genesis Prose theme?

  6. Thanks for this tip, Brad. Have seen you on the Genesis forum and glad to have found your site, too.

    1. Brad Dalton Avatar
      Brad Dalton

      You’re welcome Tammy

  7. Charles Specht Avatar
    Charles Specht

    This is a good tutorial. However, in the mobile responsive, the icons are all to the right under my nav menu. How do I center them under the nav menu in mobile responsive?

    1. Brad Dalton Avatar
      Brad Dalton

      Center them in the Media Queries.

      You have the classes there for both so its very easy to customize the mobile view at different screen sizes anyway you like.

      1. Charles Specht Avatar
        Charles Specht

        I’m not sure what the code should be. Should it be something like this?
        [code]
        .site-header .widget-area {
        text-align: center;
        }

        or maybe have:
        float: none;

        or should it be:
        .simple-social-icons {
        text-align: center;
        }
        [/code]
        I suspect probably not, because none of that worked. lol

        Could you share what the code would be?

  8. This is just brilliant. Never thought at putting the social networks icons there, most used the header widget for Google Adwords

    1. Brad Dalton Avatar
      Brad Dalton

      Does it convert?

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.