Style has been updated for XenForo 1.3.5 and 1.4.0 beta 2.
Latest version listed on download page is for XenForo 1.3.5. To download style for 1.4.0 beta 2 scroll down to "upcoming versions" section of download page.
To update from previous version you need to import new style XML file. No other files were changed.
<style>
.responsive-ad { width: 320px; height: 50px; }
@media(min-width: 500px) { .responsive-ad { width: 468px; height: 60px; } }
@media(min-width: 800px) { .responsive-ad { width: 728px; height: 90px; } }
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Responsive Ad -->
<ins class="adsbygoogle responsive-ad"
style="display:inline-block"
data-ad-client="[removed]"
data-ad-slot="[removed]"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Thanks Arty, that sort of solves it. It no longer breaks the forum (i.e. the correct width is shown), but it does this by truncating the banner image.Add <div style="overflow:hidden;"> before ads code and </div> after it
Ah, this has sorted it after all! I thought you were referring to my question about hiding static PNG banners hosted on my own site, so applied the div style to them, with no success. I then realised that you probably meant that this was for AdSense - so I wrapped the AdSense code in this div and it now looks great!Add <div style="overflow:hidden;"> before ads code and </div> after it
Thanks for such a quick reply. I tried changing @pageBackground (removed 100 from each RGB value), but it looked pretty terrible, and when I opened the PSD it was all a bit over my head, I'm afraid!Change @pageBackground (in color palette).
You'll also need to adjust shadow image so it won't look horrible, PSD for shadow is available on download page. Change background color in PSD to same as in style properties and export it. Or tell me what background color you want and I'll quickly make PNG image for shadows.
Sorry if I've misunderstood Arty, but doesn't this go against the current advice for style installation best practice, as per this guide? It says one should never edit the original style, but instead make children and make edits to those, which is what I have done.You can import it as child of original style then change parent style for your edits.
We use essential cookies to make this site work, and optional cookies to enhance your experience.