• I have gone through many topics regarding inserting inserting 720*90 leaderboard adsense code in the header area. Right now I am going to share what I am using on my website exam-jobs.

    I am using a plugin called widget shortcode . The steps for inserting your adsense code is following:

    1. Install the plugin Widget Short code.

    2. This plugin will create Arbitrary Section in your Widget page.

    3. Insert the text widget in Arbitrary section and insert your adsense code (Leader Board) in the text widget. Once you save it the Widget short code will be generated.

    4. Now you can insert this ad code in your themes header page by using the following code:
    <?php echo do_shortcode('[widget id="text-xy"]') ?>

    Here xy is the code generated by the Widget Short Code when you insert the text widget containing the Adsense code of leaderboard.

    Note:
    The leaderboard adsense ad inserted through above method will be aligned to the left side and may not work well with all the themes. So you must align your adsense to the center by adding the following div commands:
    <div style=”text-align: center;”> Before the adsense code
    </div> at the end of the adsense code.

    If you have any questions then do write here, I am sure this will work for many webmasters.

Viewing 3 replies - 1 through 3 (of 3 total)
  • effortlab

    (@effortlab)

    Thank you thank you very much! I spent almost 3 days to figure out how to insert ads code in my header and thinks I should change my theme. You save my time sir.

    1. Very clear explaination.
    2. Very simple plugin
    3. Install, insert your ads code and it’s doing great!

    As you can see at effortlab.com ??

    Can you please specify where on the header page I will insert the code?

    Appearance > Editor > Header

    Paste the code anywhere you want, whether above/below your blog title and description code. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin for Adding Ad Code in Header Space- Adsense Leaderboard’ is closed to new replies.