Created
October 28, 2015 02:04
-
-
Save reasonstousegenesis/7f98d9d415c744311cdf to your computer and use it in GitHub Desktop.
Retrieve the current layout option with Genesis
This file contains 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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Retrieve the current layout option with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/get-layout/ | |
*/ | |
add_action( 'wp_head', 'rtug_site_layout_post_info' ); | |
function rtug_site_layout_post_info() { | |
if ( 'full-width-content' === genesis_site_layout() ) | |
add_filter( 'genesis_post_info', '__return_false' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment