Genesis update and older minimum

Community Forums Forums General Discussion Genesis update and older minimum

This topic is: resolved

This topic contains 7 replies, has 3 voices, and was last updated by  CynthiaC 1 year, 9 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10702

    CynthiaC
    Participant
    Post count: 20

    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 1 year, 9 months ago by  Susan.
    • This topic was modified 1 year, 9 months ago by  Susan.
    #10728

    braddalton
    Participant
    Post count: 10263

    Hard to take a look because can’t use Firebug web dev tool as you have copyscape installed and there’s no right click.


    #10736

    CynthiaC
    Participant
    Post count: 20

    OK – its disabled now – right-click at your leisure :)

    #10746

    braddalton
    Participant
    Post count: 10263

    I’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!


    #10749

    wpsmith
    Moderator
    Post count: 178

    Can you please paste your home.php code here?


    Travis Smith | Recommended StudioPress Developer & Contributor
    WP Smith | @wp_smith | GitHub

    Due to the forums, please paste code using Pastebin, JS Fiddle (for JavaScript) or GitHub.
    How to use Firebug for Designers by SixRevisions

    #10752

    CynthiaC
    Participant
    Post count: 20

    Here 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();

     

    #10789

    wpsmith
    Moderator
    Post count: 178

    Change 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’;
    }


    Travis Smith | Recommended StudioPress Developer & Contributor
    WP Smith | @wp_smith | GitHub

    Due to the forums, please paste code using Pastebin, JS Fiddle (for JavaScript) or GitHub.
    How to use Firebug for Designers by SixRevisions

    #11177

    CynthiaC
    Participant
    Post count: 20

    That worked :)  Thank you very much!!

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Genesis update and older minimum’ is closed to new replies.