Last active
December 18, 2015 06:09
-
-
Save braddalton/5737745 to your computer and use it in GitHub Desktop.
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
function exclude_content_landing_page() { | |
if ( is_single() && !is_page_template('landing.php') ) | |
echo '<div class="custom-content">Add Adsense Code Here</div>'; | |
}; | |
/** | |
* @author Brad Dalton | |
* @learn more http://wpsites.net/web-design/code-snippets-for-adding-custom-functions/ | |
*/ | |
add_action('genesis_before_content_sidebar_wrap', 'exclude_content_landing_page'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment