Skip to content

Instantly share code, notes, and snippets.

@makbeta
Created September 15, 2013 23:55
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 makbeta/6575353 to your computer and use it in GitHub Desktop.
Save makbeta/6575353 to your computer and use it in GitHub Desktop.
Wordpress: Genesis set page to full (or any other) width layout
<?php
/*set the Genesis layout to full width or any other width
options as follows:
content-sidebar,
sidebar-content,
content-sidebar-sidebar,
sidebar-sidebar-content,
sidebar-content-sidebar,
full-width-content
*/
function set_fullwidth_layout( $opt ) {
$opt = 'full-width-content';
return $opt;
}
add_filter( 'genesis_pre_get_option_site_layout', 'set_fullwidth_layout' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment