Skip to content

Instantly share code, notes, and snippets.

@jonschr
Last active October 19, 2015 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonschr/c975458e6a91590d3e65 to your computer and use it in GitHub Desktop.
Save jonschr/c975458e6a91590d3e65 to your computer and use it in GitHub Desktop.
Force a specific layout
<?php
//* Do not include the opening php tag
//* Force full-width-content
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
//* Force content-sidebar
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
//* Force sidebar-content
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_sidebar_content' );
//* Force content-sidebar-sidebar
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar_sidebar' );
//* Force sidebar-sidebar-content
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_sidebar_sidebar_content' );
//* Force sidebar-content-sidebar
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_sidebar_content_sidebar' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment