• 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

    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.