Skip to content

Instantly share code, notes, and snippets.

@robneu
Created June 30, 2014 16:51
Show Gist options
  • Select an option

  • Save robneu/bb8cb89433582e23cb0b to your computer and use it in GitHub Desktop.

Select an option

Save robneu/bb8cb89433582e23cb0b to your computer and use it in GitHub Desktop.
Set a default full-width layout in a Genesis child theme
<?php
add_filter( 'genesis_theme_settings_defaults', 'prefix_default_full_width_layout' );
/**
* Set a full-width layout as the default in a Genesis Child theme.
*
* @author Robert Neu
* @see Genesis_Admin_Settings in genesis/lib/admin/theme-settings.php
*/
function prefix_default_full_width_layout( $settings ) {
$settings['site_layout'] = 'full-width-content';
return $settings;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment