Forum Replies Created
-
AuthorPosts
-
maruMember
Ok, thank you so much for your help Tony!
maruMemberThank you, that did it! 🙂 One more thing, now the images are not full width, I already updated the maximum slider width but nothing happens.
August 17, 2014 at 3:50 pm in reply to: Swank Theme: Using Genesis Responsive Slider at the top of blog posts #119407maruMemberOh thank you Sue!
August 17, 2014 at 1:39 pm in reply to: Swank Theme: Using Genesis Responsive Slider at the top of blog posts #119395maruMemberOk, I got it! Just in case anyone else needs it, the code is like this:
/** Add new widget before entry on homepage in Genesis theme | basicwp.com/add-new-widget-genesis-homepage/ */
genesis_register_sidebar( array(
'id' => 'homepage-feature',
'name' => __( 'Homepage Feature', 'custom' ),
'description' => __( 'This is Homepage feature section', 'custom' ),
) );/** Top Homepage feature section */
add_action( 'genesis_before_entry', 'news_homepage_feature', 9 );
function news_homepage_feature() {
if ( is_home() && is_active_sidebar( 'homepage-feature' ) ) {
echo '<div class="homepage-feature">';
dynamic_sidebar( 'homepage-feature' );
echo '</div><!-- end .homepage-feature -->';
}
}Thank you!
August 17, 2014 at 1:01 pm in reply to: Swank Theme: Using Genesis Responsive Slider at the top of blog posts #119388maruMemberDo I need to add that code instead of the one I have? Or after?
August 17, 2014 at 12:35 pm in reply to: Swank Theme: Using Genesis Responsive Slider at the top of blog posts #119379maruMemberHello Jan,
I added the following code to my functions.php file:
//* Hook before post widget area before post content
add_action( 'genesis_before_post_content', 'sp_before_post_widget' );
function sp_before_post_widget() {
if ( is_singular( 'post' ) )
genesis_widget_area( 'before-post', array(
'before' => '<div class="before-post widget-area">',
'after' => '</div>',
) );
}But then what do I have to do?
-
AuthorPosts