Community Forums › Forums › General Discussion › Genesis update and older minimum
Tagged: genesis update, minimum
This topic contains 7 replies, has 3 voices, and was last updated by CynthiaC 4 months, 2 weeks ago.
-
AuthorPosts
-
January 9, 2013 at 10:50 am #10702
The main page now has primary and second sidebars showing above the footer section with the recent Genesis upgrade?? http://www.problematwork.com/
-
This topic was modified 4 months, 2 weeks ago by
Susan.
-
This topic was modified 4 months, 2 weeks ago by
Susan.
January 9, 2013 at 12:28 pm #10728Hard to take a look because can’t use Firebug web dev tool as you have copyscape installed and there’s no right click.
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.January 9, 2013 at 12:40 pm #10736OK – its disabled now – right-click at your leisure
January 9, 2013 at 1:10 pm #10746I’d post that here http://my.studiopress.com/help/
There’s some HTML and CSS errors showing when using this tool http://validator.w3.org/
Technical Issue that Nick will know how to fix.
Your animated Favicon looks good!
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.January 9, 2013 at 1:17 pm #10749January 9, 2013 at 1:21 pm #10752Here 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();
January 9, 2013 at 3:06 pm #10789Change this
add_filter( ‘genesis_pre_get_option_site_layout’, ‘minimum_home_layout’ );to this:
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );If that works, then delete this:
/**
* Filter layout
*/
function minimum_home_layout( $opt ) {
return ‘full-width-content’;
}
January 11, 2013 at 5:23 am #11177That worked
Thank you very much!! -
This topic was modified 4 months, 2 weeks ago by
-
AuthorPosts
The topic ‘Genesis update and older minimum’ is closed to new replies.