ADs only for Mobile Version of Theme

StatusIDPriorityType
Closed24671NormalHotMag Wordpress
Profile Reply
Dalee Client

Hi,

I have created Google DFP Ad-Tags only for the Mobile version of your theme. They should only be called when someone accesses with the smartphone. I inserted the following code in the style.css and hotmag-theme-main.css, it did not work. Can you help me and tell me where the code belongs in your template data?

@media (max-width: 1200px) {
    #googledfptag{
    display:none;
        }
}

@media (max-width: 991px) {
    #googledfptag{
    display:none;
        }
}

@media (max-width: 768px) {
    #googledfptag{
    display:none;
        }
}

@media (max-width: 420px) {
    #googledfptag{
        display:block;
        margin:5px 0;
        margin-bottom:5px;
        text-align:center
        }
}

Thx and best wishes

Denis

Replies

User Description Posted On
Shindiri Support team Administrator

Hi,

Would you be kind enough to give us more information.

We'll need to at least have where do you want this ads to be visible, a picture with photoshoped content, to be able to give you the place where you should upload the code.

Also the whole code is necessary.

Best regards,
Shindiri Studio | http://www.shindiristudio.com/

× This ticket is closed.