• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Add a radius to a Google ad placeholder?

Neil E.

Active member
#1
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.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>
<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?
 

Jeremy

Well-known member
#4
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
#5
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?
 

EQnoble

Well-known member
#6
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
#8
On further investigation, rounded corners can only be added to text ads. When "display ads" type is selected, no corner choice is possible.
 

EQnoble

Well-known member
#9
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: