Created
March 16, 2013 05:19
-
-
Save braddalton/5175092 to your computer and use it in GitHub Desktop.
Displays your Adsense code after all single posts. Change the hook to change the location of displaying your ads and change the conditional tag to display on other pages. Style your ads using the adsense-style class as your selector.
This file contains hidden or 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
add_action('genesis_after_post_content', 'adsense_after_posts'); | |
function adsense_after_posts() { | |
if (is_single() ) | |
echo '<div class="adsense-style">Adsense goes here</div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment