Forum Replies Created
-
AuthorPosts
-
JohnsonMktg
MemberI figurd it out John... Thanks tho! However, Jen here is the code in the home.php i used after registering the new widget in functions.php:
/** Add the home close section */ add_action( 'genesis_after_content', 'education_close' ); function education_close() { /** Do nothing on page 2 or greater */ if ( get_query_var( 'paged' ) >= 2 ) return; genesis_widget_area( 'close', array( 'before' => '<div class="after-post widget-area">', 'after' => '</div>', ) ); }
All you should have to do is change the "education_close" to balance_home_featured or and "close" to home_featured or whatever your new widget name is and it should work perfectly!
JohnsonMktg
MemberI'm having a similar issue with the Education theme.... I've registered an extra widget in the functions.php file using:
genesis_register_sidebar( array( 'id' => 'close', 'name' => __( 'Close', 'education' ), 'description' => __( 'This is the close section displayed below the call to action banner.', 'education' ), ) );
and then added the widget hook to the home.php file as follows:
/** Add the home close section */ add_action( 'genesis_before_loop', 'education_close' ); function education_close() { /** Do nothing on page 2 or greater */ if ( get_query_var( 'paged' ) >= 2 ) return; genesis_widget_area( 'close', array( 'before' => ' ', ) ); }
however, no matter where i put the code to the home.php it shoves my sidebars underneath.... so any help would definitely be appreciated
JohnsonMktg
MemberHere are the two edits i made... one was to the functions.php file and one was to the home.php file to add the widget to the home page:
gist.github.com/anonymous/9251066
-
AuthorPosts