Adding Adsense code in hooks
-
I was trying to add a Google ad sense code in one of the hooks (after the right sidebar content) assuming it’d display after the last side bar widget. Google instructions asks to add the code in ‘the HTML source of the page where I want the add to appear’. Saved the settings in the hook and it doesn’t show anything on the site. I was trying to see how it works 🙁
What am I missing?Thanks!
-
What you did should work – Adsense sometimes takes around an hour to first display the ad – if you’d like to include your URL I can take a peak and see if I can see the code in the background 🙂
I’m seeing the code below the sidebar 🙂
I was not able to see the ads until today. But it did not show up when I was checking yesterday even after your could see the code. I don’t know what is wrong. I also could not see the page header spacing y’day.
Anyways, now the ad unit displays but doesn’t fit right under the widgets. It would look better if the width is same as the widgets. Is there a way to change the width of the ad unit? In the adsense this is the standard size for a long-vertical unit.
Thanks.You’ll either need to choose an ad that is less wide, or increase the width of your sidebar 🙂
That’s their standard size for vertical ad units. And increasing width of sidebar still doesn’t do the job as the change can only be by 25%,30%… (difference of 5) and so on.. one can’t put a number of choice and test. Anyways, I’ll check if I can customize the ad unit on google later.
Thanks.Have you taken a look at creating custom ad units? https://support.google.com/adsense/answer/3289364?hl=en
Thanks for the link! That’ll help 🙂
Awesome 🙂
The topic ‘Adding Adsense code in hooks’ is closed to new replies.
