Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created July 26, 2012 18:05
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 billerickson/3183557 to your computer and use it in GitHub Desktop.
Save billerickson/3183557 to your computer and use it in GitHub Desktop.
<?php
/**
* Force Full Width Layout
*
* @author Bill Erickson
* @link http://www.billerickson.net/overriding-options-and-meta
*
* @param string/array $meta_value
* @param int $post_id
* @param string $meta_key
* @param bool $single
* @return string/array $meta_value
*/
function be_home_full_layout( $meta_value, $post_id, $meta_key, $single ) {
if( '_genesis_layout' == $meta_key )
$meta_value = 'full-width-content';
return $meta_value;
}
add_filter( 'get_post_metadata', 'be_home_full_layout', 10, 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment