AdSense in Amped Theme

Community Forums Forums Design Tips and Tricks AdSense in Amped Theme

This topic is: not resolved

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Summer 8 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #77649

    N3tb0ss
    Participant

    How do I remove the Adsense Code in the Amped Child Theme? Its appearing below my blog posts only and I would like to remove it. The unsophisticated answer seems to be comment it out in the adsense.php page and also comment out the class in the CSS. But I feel like there is a hook somewhere that attached but I can locate it. I have installed simple hooks to check but no such luck on the posts page hooks.

    http://www.crossfitprominent.com
    #77700

    Summer
    Participant
    Post count: 1061

    Best bet is to edit the functions.php and remove this part (or comment out the “add_action” call):

    // Add Google AdSense after single post
    add_action('genesis_after_post_content', 'amped_include_adsense', 9); 
    function amped_include_adsense() {
        if(is_single())
        require(CHILD_DIR.'/adsense.php');
    }

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.