Default page layout – education theme

Community Forums Forums Design Tips and Tricks Default page layout – education theme

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by 2 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #35003

    Using the education theme. When I set the default layout to sidebar-content-sidebar, the secondary sidebar mysteriously appears on the homepage, to the right of the slider. When I change it back to content-sidebar – it goes away.

    I’m working with several folks who are entering content, and I’d like to use sidebar-content-sidebar as the default – one less thing for them to remember to click.

    Any thoughts on how to resolve? The site is not live yet, so I’ll leave it up with the error showing:



    Doak Heggeness

    Try adding this to your home.php file after <?php

    // Force layout on home page
    add_filter( 'genesis_site_layout', '__genesis_return_content-sidebar' );

    The user cannot override this.

    Doak Heggeness, WordPress Development | Website


    Thanks, Doak!

    It didn’t work, but your code provided some search terms for me to use and I found this, which worked:

    /** Force full width layout */
    add_filter( 'genesis_pre_get_option_site_layout', 'child_do_layout' );
    function child_do_layout( $opt ) {
        $opt = 'full-width-content'; // You can change this to any Genesis layout below
        return $opt;

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

You must be logged in to reply to this topic.