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 http://leechildbooklist.com/lee-child-die-trying/
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;">
google_ad_client = "ca-pub----------------";
/* Book List 300x250 */
google_ad_slot = "5141080867";
google_ad_width = 300;
google_ad_height = 250;
n.b. I'm using the Sample child theme if that makes any difference.http://leechildbooklist.com/lee-child-die-trying/
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.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!