Forum Replies Created
-
AuthorPosts
-
CynthiaCParticipant
Thank you! - you are officially my favourite person today 🙂
CynthiaCParticipantThat worked 🙂 Thank you very much!!
CynthiaCParticipantHere ya go!
<?php
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'minimum_home_loop_helper' );
/**
* Add widget support for homepage. If no widgets active, display the default loop.
*
*/
function minimum_home_loop_helper() {if ( is_active_sidebar( 'welcome' ) || is_active_sidebar( 'featured' ) || is_active_sidebar( 'portfolio' ) ) {
/** Force homepage layout */
add_filter( 'genesis_pre_get_option_site_layout', 'minimum_home_layout' );if ( is_active_sidebar( 'welcome' ) ) {
echo '<div class="welcome">';
dynamic_sidebar( 'welcome' );
echo '</div><!-- end .welcome -->';
}if ( is_active_sidebar( 'featured' ) ) {
echo '<div class="featured">';
dynamic_sidebar( 'featured' );
echo '</div><!-- end .featured -->';
}if ( is_active_sidebar( 'portfolio' ) ) {
echo '<div class="portfolio">';
dynamic_sidebar( 'portfolio' );
echo '</div><!-- end .portfolio -->';
}}
else {
genesis_standard_loop();
}}
/**
* Filter layout
*/
function minimum_home_layout( $opt ) {
return 'full-width-content';
}genesis();
CynthiaCParticipantOK - its disabled now - right-click at your leisure 🙂
CynthiaCParticipantnice - how did you select a video for your featured image?
-
AuthorPosts