Best set-up of Theme and Layout Settings

Community Forums Forums General Discussion Best set-up of Theme and Layout Settings

This topic is: not resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  nutsandbolts 11 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #74582

    Carta
    Member
    Post count: 8

    Converted my site to Executive.

    When I started, I set the Default Layout in the Genesis > Theme Settings to the header-content (no sidebar) choice. Of course, when I got to my blog page there was no sidebar. So I tried changing the Blog page Layout Settings to the header-content-sidebar style. This didn’t override the default theme setting for layout style.

    Next, I changed the Theme Settings to a sidebar layout style. Then I went through all page except the Blog page and changed each page’s Layout Settings to the header-content layout. This worked.

    Did I do this the right way? I would’ve thought that making the default layout style for the theme the header-content style would be best and then just change the Blog page’s layout. I’m guessing that didn’t work has to do with the page architecture and the sidebar widget requiring a theme wide sidebar layout side.

    Any thoughts on this?

    http://www.cartagram.com
    #74608

    nutsandbolts
    Moderator
    Post count: 3141

    The way you did it is fine, though it will be a bit inconvenient moving forward since you’ll have to remember to change the layout for any new pages. Here’s an easier way to use the content/sidebar layout on only the blog.

    Robin Cornett has a great tutorial for setting up a custom blog template in your child theme: http://www.robincornett.com/blog-template-update/

    If you’re using the older, non-Pro version of Executive, here’s her older post: http://www.robincornett.com/custom-blog-template/

    Then to force the content/sidebar layout on individual blog posts, add this to your functions.php:

    // Force sidebar on blog posts
    add_filter( 'genesis_pre_get_option_site_layout', 'nabm_force_layout' );
    function nabm_force_layout( $opt ) {
        if ( is_single() ) { 
            $opt = 'content-sidebar';
            return $opt;
        }
    }

    Hope that helps!


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

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

You must be logged in to reply to this topic.