Help Adding a Widget Area to Genesis Magazine Child Theme Header
-
Good Evening,
I’m attempting to customize the Genesis Magazine Child Theme. Having never worked with the Genesis framework before, I’m finding this quite challenging. The test site is located here:
https://greenhousegraphix.com/crunchy/What I’m trying to do is add a widget to the top left corner to house the logo. I’m using a widget because there will be 4 logos, one for each season, and I thought this would be an easy way for the user to change them.
Here’s what I’ve done.
1. duplicated lib/structure/header.php from the genesis folder and placed into the magazine folder. (I assumed I had to keep this same structure)
2. I changed line 847-851 to:function genesis_do_header() { echo '<div id="title-area">'; dynamic_sidebar( 'logo' ); echo '</div><!-- end #title-area -->';
3. I added to functions.php:
genesis_register_sidebar( array( 'id' => 'logo', 'name' => __( 'logo', 'magazine' ), 'description' => __( 'This is the logo.', 'magazine' ), ) );
I’m sure I’ve done something wrong, any insight would be appreciated.
Thanks.
- The topic ‘Help Adding a Widget Area to Genesis Magazine Child Theme Header’ is closed to new replies.