Adsense skyscraper not showing in sidebar

  • ronangelo

    #31724

    Custom Menus: http://blog.kjodle.net/2011/08/25/how-to-create-and-use-custom-menus-in-wordpress/

    You won’t lose anything from activating a child-theme. If you turn it off, then the site’s appearance will go back to the way it was.

    WeightLossLadder

    #31725

    Hi ronangelo – thanks.

    Child theme is now activated. Header reloaded, and widgets tidied up. Look forward to hearing the next instalment!

    Admin

    Syahir Hakim

    #31726

    Okay, now create a functions.php file inside your child theme’s folder. Then add this code into that file:

    <?php
    function graphene_custom_adsense_limit(){
    return 2;
    }
    add_filter( 'graphene_adsense_ads_limit', 'graphene_custom_adsense_limit' );
    ?>

    That will limit the in-between posts adsense ads to just 2, leaving 1 more ad available for your sidebar.

    WeightLossLadder

    #31727

    Thanks Syahir, that worked a treat!

    Great stuff, much appreciated.

Viewing 4 posts - 11 through 14 (of 14 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.