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,075
155
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...
 

Similar threads

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu

Follow us on Facebook