Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created May 10, 2015 15:29
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 reasonstousegenesis/db2991cfab39f8fad535 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/db2991cfab39f8fad535 to your computer and use it in GitHub Desktop.
Force a layout option with Genesis (longhand version)
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Force a layout option with Genesis (longhand version)
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/force-layout/
*/
add_filter( 'genesis_site_layout', 'rtug_force_layout' );
function rtug_force_layout( $layout ) {
return 'full-width-content';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment