Hello folks,

Was just wondering if there was an easy way to style the DIVs that the adsense blocks are being wrapped in? I'd like to add id's to the node and trailer div's so that i can style them, but I don't know where to do this. I tried wrapping

tags in the admin/settings/adsense-injector template text areas but that just displayed the literal text...

Thanks!

Comments

hswong3i’s picture

Assigned: Unassigned » hswong3i

You should able to add your own CSS from the template, e.g. as default template:

<div style="float: right; margin: 0; padding: 0 1em .25em 0;">[adsense:250x250:8496125171]</div>%body<br class="clear"/>[adsense:728x90:7878425880]

There is some reason that I remove the legacy DIV class for default template: because we won't know how many ads and where you hope to locate within your page; even we provide some default class, you may soon override it with your own style. Long story short, you should have more flexibility :D

May you double check your syntax, or paste your template code to this issue as reference?

Apollo610’s picture

Status: Active » Closed (fixed)

Thanks HS, I just took a look at what was going on and realized that when I installed FCKEditor, the AdSense Injector text areas weren't excluded and so FCK was injecting HTML code into the source.

After excluding the text areas and clearing out the html text, the styles worked. I knew it had to be something goofy going on on my side.

Thank you for the response!