Title: Adding Header Widget
Last modified: August 30, 2016

---

# Adding Header Widget

 *  [reneecook3](https://wordpress.org/support/users/reneecook3/)
 * (@reneecook3)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/adding-header-widget/)
 * Hi Everyone,
 * I found a tutorial that taught me how to add a widget area to my theme.
 * Here’s my site: [http://tunemyheartblog.com/blog](http://tunemyheartblog.com/blog)
 * You see the logo is top left. I want those social buttons over to the right in
   the header.
 * This is what I added to the functions php file
 *     ```
       genesis_register_sidebar( array(
       	'id' 		=> 'custom-widget',
       	'name' 		=> __( 'Custom Widget', 'genesis' ),
       	'description'	=> __( 'Custom Widget Area', 'childtheme' ),
       ) );
   
       add_action( 'genesis_after_header', 'add_genesis_widget_area' );
       function add_genesis_widget_area() {
                       genesis_widget_area( 'custom-widget', array(
       		'before' => '<div class="custom-widget widget-area">',
       		'after'  => '</div>',
           ) );
   
       }
       ```
   
 * and this is the CSS I added to the style.css file to style it
 *     ```
       .custom-widget {
       background-color: white;
       margin: 5px 0 10px;
       padding: 10px;
       overflow: hidden;
       }
       ```
   
 * What do I need to change in the php in order to move that widget area up to the
   right side of the header?
 * Thanks in advance!

The topic ‘Adding Header Widget’ is closed to new replies.

## Tags

 * [header widget](https://wordpress.org/support/topic-tag/header-widget/)
 * [PHP functions](https://wordpress.org/support/topic-tag/php-functions/)

 * 0 replies
 * 1 participant
 * Last reply from: [reneecook3](https://wordpress.org/support/users/reneecook3/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/adding-header-widget/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
