XF 1.2 Add a radius to a Google ad placeholder?

Neil E.

Active member
http://www.odsc.on.ca/.xenforo/index.php (not live)

I thought adding 5px radii might match other page elements better. Typically I go to EXTRA and add:

border-radius: 5px 5px 5px 5px !important;

But it has no effect.

screenshot of firebug:
XF firebug.jpg

Content of template ad_sidebar_top:
<xen:hook name="ad_sidebar_top" />
<span class="ad_upper">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4817662526537110";
/* ODSC 160 x 600 */
google_ad_slot = "7334063190";
google_ad_width = 160;
google_ad_height = 600;
<script type="text/javascript"
<xen:comment>insert first google ad</xen:comment>
Where does "<ins style="display........." come from? (as shown in firebug)
Am I looking at this the right way or is tweaking google ads verboten?


Well-known member
I knew I'd read that somewhere. Couldn't fine that link to post earlier. I just know Google is strict with their programs.

Neil E.

Active member
I'd like to do this as an experiment, just to learn how to make it work (since the site is not live). Any suggestions on what to modify to add the radius?


Well-known member
Wouldn't you just customize the ad with use custom settings for ad style, or create a custom ad style and apply it when needed?


Neil E.

Active member
That's great, thank you. I didn't look at their custom settings. Nice simple corner change.

Neil E.

Active member
On further investigation, rounded corners can only be added to text ads. When "display ads" type is selected, no corner choice is possible.


Well-known member
The only other way I can think of is to wrap the ad in another element and in that other element do a overflow:hidden; and a border-radius: , though I think it may be against their TOS to cover any of the ad, even if it is something as trivial as putting a radius to match your site nicely.

Then again per that link you posted it may be arguable under the terms of this line:
In some situations though, we understand that modifications are crucial to a clean user experience
Last edited: