How to apply full content layout to WooCommerce pages in Genesis

Posted on
5/5 - (271 votes)

Looking to force full content layout to all WooCommerce product category archives, WooCommerce product tag archives and single product pages in your Genesis site?

Just add the following code in your child theme’s functions.php:

// Force full content layout on product category, product tag archives and all single products
add_action( 'get_header', 'sk_force_layout' );
function sk_force_layout() {

	if ( is_tax( 'product_cat' ) || is_tax( 'product_tag' ) || is_singular( 'product' ) ) {
		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
	}

}

Full content layout for the main shop page, cart and checkout pages can be set by simply editing those static Pages and applying the layout.