Today, I had a WTF moment once I was including AdSense code to SandboxBlogger.com theme. Naturally, I set up Wayne’s AdSense-Deluxe Plugin for WordPress to make it simple on myself. I’ve made the selection just because AdSense-Deluxe Plugin is one of the best plugin out within the WordPress plugin jungle (extra about that in later put up).
In the previous, I’ve been avoiding adverts in posts on my different weblog that I both take part or have helped to setup. All for the title of unintrusive adverts, actually too unintrusive… This time round I needed to be somewhat bit bolder in my adverts association. However, I didn’t need these put up adverts to point out up in my residence web page, archive pages, or any non-single pages within the weblog. Ahh… Good! AdSense-Deluxe permits me to show them off with just some clicks to unchecked the associated verify field.
Then I noticed it.
WTF is there a spot screwing up my alignment?!
As it seems, I needed to make the put up textual content wrap across the adverts. Also to position somewhat more room across the adverts in order that my put up textual content is not going to be too near the adverts. Without considering, I went forward so as to add a pair of DIVs across the AdSense-Deluxe commented codes within the put up. Well, AdSense-Deluxe did its job by not changing the HTML remark with AdSense code, however that leaves a pair of empty DIVs that naturally takes up house…
At this level, I used to be nonetheless within the WTF moment, franticly digging into AdSense-Deluxe code to see if I can by some means repair it to additionally deal with the pair of DIVs across the AdSense code block. Should I hack it to make use of a particular type of the remark code in order that AdSense-Deluxe will acknowledge the best way to add the pair of DIVs across the AdSense code weblog? I used to be considering to myself.
It was solely after a number of hours that I spotted that WTF! I might simply add the pair of DIVs alongside with the AdSense code block within the AdSense-Deluxe choices web page! WTF do I want to position the pair of DIVs within the put up!?
<div class=”adsclass”>< … adsense block …></div>
Talk about feeling silly…