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

XF 1.2 How to make a banner responsive

Mr Lucky

Well-known member
#5
Thanks, I follow the adsense instructions, but the second link doesn't seem to address how to make a banner image responsive, all I can find is:

If you use a custom solution then you will need to adapt it to work with responsive design.
In my ad above content template I have this :
HTML:
<xen:comment>DEFINE AND RANDOMIZE YOUR BANNERS</xen:comment>

<xen:set var="$banners.1"><a href="http://domain.com/"><img src="image1.png" alt ="" /></a></xen:set>
<xen:set var="$banners.2"><a href="http://domain.com/"><img src="image1.png" alt ="" /></a></xen:set>

{xen:raw '$banners.{xen:calc '({$serverTime} % 3) + 1'}'}
So no size is set for the images, yet they do not resize responsively.
 

Mr Lucky

Well-known member
#6