Created
February 23, 2018 20:30
-
-
Save anwerashif/d2f597bcfa0cf9b3ce997c55602448cf to your computer and use it in GitHub Desktop.
Force Full-Width All Pages in Genesis Framework
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 | |
// Do NOT include the PHP opening tag | |
// Full Width All Pages | |
function all_pages_full_width( $full ) { | |
if ( is_page( ) ) { | |
$full = 'full-width-content'; | |
return $full; | |
} | |
} | |
add_action ('genesis_pre_get_option_site_layout', 'all_pages_full_width'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment