Jump to content

LH header widget


rivermobster

Recommended Posts

-Add to functions PHP:

//*Add LH header widget
genesis_register_sidebar( array(
    'id'                      => 'header-left',
    'name'                  => __( 'Header Left', 'wpsitesdotnet' ),
    'description'      => __( 'Header left widget area', 'wpsitesdotnet' ),
) );

add_action( 'genesis_header', 'wpsites_left_header_widget', 11 );
    function wpsites_left_header_widget() {
    if (is_active_sidebar( 'header-left' ) ) {
     genesis_widget_area( 'header-left', array(
       'before' => '<div class="header-left widget-area">',
       'after'     => '</div>',
        ) ); 
  }
}


-Add the following CSS text to a stylesheet:

.site-header .header-left {
float: left;
width: 30%;
overflow: hidden;
}

.site-header {
padding-top: 0px;
}


-Change line 1047 to 0px

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...