Created
June 30, 2014 16:51
-
-
Save robneu/bb8cb89433582e23cb0b to your computer and use it in GitHub Desktop.
Set a default full-width layout in a Genesis child theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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