Option 1
add_filter( 'genesis_pre_get_option_site_layout', 'genesiscustomlayout' ); function genesiscustomlayout(){ $pageobj = get_queried_object(); $pageid = absint($pageobj->ID); $pagelayout = get_post_meta($pageid , "_genesis_layout" , true); return $pagelayout; }
Option 2
This function is to forced your custom post type content layout to full width. Common post type is post, page, and product ( woocommerce plugin pages ) and etc.
Copy the codes below and paste it into your function.php. Just change the ‘product’ to your custom post type.
function custom_post_type_layout(){ if( 'product' == get_post_type() ) { return 'full-width-content'; } } add_filter( 'genesis_site_layout', 'custom_post_type_layout' );