Skip to content

Instantly share code, notes, and snippets.

@anwerashif
Created February 23, 2018 20:30
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 anwerashif/d2f597bcfa0cf9b3ce997c55602448cf to your computer and use it in GitHub Desktop.
Save anwerashif/d2f597bcfa0cf9b3ce997c55602448cf to your computer and use it in GitHub Desktop.
Force Full-Width All Pages in Genesis Framework
<?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