Homepage › Community Forums › Epik Theme Support › removing spaces between images on Welcome Wide section › Reply To: removing spaces between images on Welcome Wide section
Thanks, I just figured out what was missing. If you look in your home.php file in the Welcome section you’ll see a section that looks like this –
/**
* Display widget content for the "Welcome-wide", "Welcome Feature 1", "Welcome Feature 2", and "Welcome Feature 3" sections.
*
*/
function epik_home_loop_helper_welcome() {
if ( is_active_sidebar( 'welcome-wide' ) || is_active_sidebar( 'welcome-feature-1' ) || is_active_sidebar( 'welcome-feature-2' ) || is_active_sidebar( 'welcome-feature-3' ) ) {
echo '<div class="welcome">';
genesis_widget_area( 'welcome-wide', array(
'before' => '<div class="welcome-wide"><div class="wrap">',
'after' => '</div></div>',
) );
echo '<div class="welcome-features"><div class="wrap">';
genesis_widget_area( 'welcome-feature-1', array(
'before' => '<div class="welcome-feature-1">',
'after' => '</div>',
) );
genesis_widget_area( 'welcome-feature-2', array(
'before' => '<div class="welcome-feature-2">',
'after' => '</div>',
) );
genesis_widget_area( 'welcome-feature-3', array(
'before' => '<div class="welcome-feature-3">',
'after' => '</div>',
) );
echo '</div><!-- end .wrap --></div><!-- end .welcome-features --></div><!-- end .welcome -->';
}
}
Replace that entire section with the following code –
/**
* Display widget content for the "Welcome-wide", "Welcome Feature 1", "Welcome Feature 2", and "Welcome Feature 3" sections.
*
*/
function epik_home_loop_helper_welcome() {
if ( is_active_sidebar( 'welcome-wide' ) || is_active_sidebar( 'welcome-feature-1' ) || is_active_sidebar( 'welcome-feature-2' ) || is_active_sidebar( 'welcome-feature-3' ) ) {
echo '<div class="welcome">';
if ( is_active_sidebar( 'welcome-wide' ) ) {
genesis_widget_area( 'welcome-wide', array(
'before' => '<div class="welcome-wide"><div class="wrap">',
'after' => '</div></div>',
) );
}
if ( is_active_sidebar( 'welcome-feature-1' ) || is_active_sidebar( 'welcome-feature-2' ) || is_active_sidebar( 'welcome-feature-3' ) ) {
echo '<div class="welcome-features"><div class="wrap">';
genesis_widget_area( 'welcome-feature-1', array(
'before' => '<div class="welcome-feature-1">',
'after' => '</div>',
) );
genesis_widget_area( 'welcome-feature-2', array(
'before' => '<div class="welcome-feature-2">',
'after' => '</div>',
) );
genesis_widget_area( 'welcome-feature-3', array(
'before' => '<div class="welcome-feature-3">',
'after' => '</div>',
) );
echo '</div><!-- end .wrap --></div><!-- end .welcome-features -->';
}
echo '</div><!-- end .welcome -->';
}
}
I’ll make sure and add this in the next update. Thanks for letting me know.
