Adding AdSense to every page

Community Forums Forums General Discussion Adding AdSense to every page

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  peps2004 2 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #46806


    I’m setting up a new site and want to include an Adsense ad on the right hand side at the top of each page. From what I can tell, the code can be entered in any of the following simple hooks for it to appear where I want it to:


    The problem I’m having though is that this is shifting the rest of the text to the left the entire way down the page. You can see an example hereĀ

    Is there some kind of additional code I need to include to stop it from shifting it to the left? The code I’ve entered is:

    <div style=”margin: 5px; float: right;”>
    <script type=”text/javascript”><!–
    google_ad_client = “ca-pub—————-“;
    /* Book List 300×250 */
    google_ad_slot = “5141080867”;
    google_ad_width = 300;
    google_ad_height = 250;
    <script type=”text/javascript”

    n.b. I’m using the Sample child theme if that makes any difference.


    Do you want it at the top of each PAGE/POST or at the top of the Page/Post inside the CONTENT area – for example, you open up a page/post and within the confines of the content – you’ll see that add on the right?



    I’d assumed that they were the same thing, so I’m not too sure what the difference is between the two. I guess out of the two though, I’d want it to display within the content area.

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

You must be logged in to reply to this topic.