Jump to content


Photo
- - - - -

Display different Ads on Desktop and Mobile in the same Ad Zone


  • Please log in to reply
4 replies to this topic

#1 Admin

Admin

    Administrator

  • Administrators
  • 1,189 posts

Posted 18 March 2016 - 07:59 AM

When you create a new Ad Zone (e.g. "Index Bottom") and wish to display different ads on desktops and mobile phones, you can use the following code:

<div class="hidden-xs">
    Desktop Ad Code here
</div>
<div class="visible-xs">
    Mobile Ad Code here
</div>

Update: Code only compatible with AVS 3.0 or newer.


Danny B.
Founder
ClipShare | MediaShare | AVS | CamChat


#2 devil360

devil360

    Member

  • Members
  • PipPip
  • 24 posts

Posted 18 March 2016 - 10:30 PM

Sorry this is for version 3.1or 2-3 ??

 

Thanks



#3 apple82

apple82

    Member

  • Members
  • PipPipPipPip
  • 296 posts
  • LocationSpain

Posted 19 March 2016 - 04:37 PM

Sorry this is for version 3.1or 2-3 ??

 

Thanks

 

3.0 .... 3X....

 

not! 2. ....



#4 devil360

devil360

    Member

  • Members
  • PipPip
  • 24 posts

Posted 20 March 2016 - 08:00 AM

Thanks !



#5 Quantum

Quantum

    Member

  • Members
  • PipPipPip
  • 86 posts

Posted 21 March 2016 - 03:40 AM

Awesome ... I have been looking for this .... :D