Resource icon

Add advertising centered and only show on pc or only show on mobile

  • Upgrade Your Account to download resource
    Hello Guest ! Upgrade your account to download from our sections Here.
    How to upgrade your account to download resources Learn More.
    Guest need to read through our rules and regulations Learn More.

XenforoX

Administrator
Staff member
Administrator
May 29, 2018
1,127
188
63
#1
XenforoX submitted a new resource:

Add advertising centered and only show on pc or only show on mobile - advertising centered and only show on pc or only show on mobile

Add these code to extra.less template

CSS:
@media all and (min-width: 480px) {
    .deskContent {
            display:block;
            margin: 0
            auto;
}   
    .phoneContent {
           display:none;
}
  
}

@media all and (max-width: 479px) {
    .deskContent {
          display:none;
}
    .phoneContent {
          display:block;
          margin: 0 auto;
}
}
go to admin/setup/advertising and choose your right advertising position and add HTML
code like this...
Read more about this resource...