How do I move Adsense code??

tony20

Power Member
Joined
Nov 22, 2008
Messages
744
Reaction score
43
Warning!! Sorry total noob question alert!!

One of my ads overlaps the sidebar slightly. I never thought anything of it till google yesterday sent me a message that I had to change it or else! :(

So, how do I move the code slightly to the left? Can I do it from the "Appearance", "editor" section?

thanks in advance
 
do you mean your adsense ad, are you using the responsive adsense ad format, this ensures the ad fits the container.
 
Basic HTML and CSS, mate.

If not sure, either read up on HTML or hire a freelancer to do it for you.
 
its not a responsive theme. I know i know. I need to change it but in the mean time i just need to move this ad block 1inch to the left by tomorrow :(
 
it is hard to tell if we cannot see the theme you are using, most new themes have ad placeholders that should not overlap, but if it does then as the poster above said some simple css will do it. Remember to do any changes in a child theme or else you'll lose the changes when the next update happens
 
I presumed it is basic. But when I searched google i got this = <left> code </left> and that done bugger all!

Could you give me some idea? I messaged a guy that has done work for me before but he;s not gotten back to me and i'm getting worried lol
 
That won't do unless you know the element to target
I presumed it is basic. But when I searched google i got this = <left> code </left> and that done bugger all!

Could you give me some idea? I messaged a guy that has done work for me before but he;s not gotten back to me and i'm getting worried lol
 
it is hard to tell if we cannot see the theme you are using, most new themes have ad placeholders that should not overlap, but if it does then as the poster above said some simple css will do it. Remember to do any changes in a child theme or else you'll lose the changes when the next update happens


No placeholders. I just added the adsense code to the Functions.php section in the wordpress editor.
 
Visit the My ads tab, find your ad unit in the list, and click Get code. Choose the code type that you want to use: To use the asynchronous ad code, leave the code type set to "Asynchronous" in the Code type drop-down. If you want to use the existing AdSense ad code, select "Synchronous" from the Code type drop-down.
 
Back
Top