Created
October 18, 2016 11:12
-
-
Save leepettijohn/44c022d7c49d18cb02ccc7ddf37dd1d4 to your computer and use it in GitHub Desktop.
Force page layout (full width / content sidebar)
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
| /** Force full width layout */ | |
| add_filter( 'genesis_pre_get_option_site_layout', 'child_do_layout' ); | |
| function child_do_layout( $opt ) { | |
| if ( is_single() ) { // Modify the conditions to apply the layout to here | |
| $opt = 'full-width-content'; // You can change this to any Genesis layout | |
| return $opt; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment