neilgee
4/16/2014 - 9:41 AM

Custom Post Type - Force Layout

Custom Post Type - Force Layout

<?php

function themeprefix_cpt_layout() {
    if( 'your-custom-post-type-name' == get_post_type() ) {
        return 'full-width-content';
    }
}
add_filter( 'genesis_site_layout', 'themeprefix_cpt_layout' );

//content-sidebar
//sidebar-content
//content-sidebar-sidebar
//sidebar-sidebar-content
//sidebar-content-sidebar
//Swap in alternate layout above to return value