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:

.ad_upper
{
border-radius: 5px 5px 5px 5px !important;
}

But it has no effect.

screenshot of firebug:
XF firebug.webp

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>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</span>
<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?
 
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?
 
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?


To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
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:
Back
Top Bottom