Forum Replies Created
-
AuthorPosts
-
February 25, 2014 at 8:07 pm in reply to: Fixing slider on Home page Issues using the Genesis Sample theme #92379garyjalbertMember
Kudos to you Brad! I was having the same issue, and your recommendation worked for my site as well. Thank you!
garyjalbertMemberSo is this how it should read? If so, it still doesn't appear to be working. I've placed a text widget inside with "Test" inside, and it's not showing up on my home page.
//* Register after header widget area
genesis_register_sidebar( array(
'id' => 'after-header',
'name' => __( 'After Header', 'themename' ),
'description' => __( 'This is a widget area that can be placed after the header', 'themename' ),
) );//* Add the slider to the homepage
add_action( 'genesis_before_content_sidebar_wrap', 'nabm_add_widget' );
function nabm_add_widget() {
if ( is_home() )
genesis_widget_area( 'after-header', array(
'before' => '<div id="after-header">',
) );
}garyjalbertMemberAndrea,
Thank you for the quick reply! So that I am clear, these are both supposed to go in the functions.php file, correct? That's where I placed the registration, and it shows up in my widget display. Anyway, I did plug in your code above, but it's still not showing up? Below is my registration code and the code you provided above. Please let me know if you see a mistake or not. If not, am I supposed to place something in the style.css file?
//* Register after header widget area
genesis_register_sidebar( array(
'id' => 'after-header',
'name' => __( 'After Header', 'themename' ),
'description' => __( 'This is a widget area that can be placed after the header', 'themename' ),
) );//* Add the page widget in the content - HTML5
add_action( 'genesis_before_content_sidebar_wrap', 'nabm_add_widget' );
function nabm_add_add_widget() {
if ( is_home() )
genesis_widget_area( 'after-header', array(
'before' => '<div id="after-header">',
) );
}Thank you again for your help!
Gary
-
AuthorPosts