How to apply Full Content layout to archives in Genesis

Posted on

Looking to remove sidebar(s) on all archive pages in your Genesis site? Just add the following in child theme’s functions.php.

// Force full content layout on archives
add_action( 'get_header', function () {
	if ( !is_archive() ) {
		return;
	}

	add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
} );