Support Forums - Classified Ads Script Osclass
Osclass plugin support => Advertisement Manager Plugin => Topic started by: Daniel PM on July 04, 2016, 01:29:34 AM
-
Hello frosticek, I would like to know how to disable banners from this plugin in mobile theme. I need them only in normal theme. Thanks.
-
@Daniel PM
Use css media queries:
http://www.w3schools.com/cssref/css3_pr_mediaquery.asp (http://www.w3schools.com/cssref/css3_pr_mediaquery.asp)
-
Thanks for your reply frosticek, can you be more specific please? I'm using theme Zara. Thanks.
-
@Daniel PM
You need to use CSS to set display:none on banners on devices with screensize smaller than XY px
-
Something like this in 'Extra HTML code (placed between before & after code)' ?
*************
<!DOCTYPE html>
<html>
<head>
<style>
h1.hidden {
display: none;
}
</style>
</head>
<body>
<h1>This is a visible heading</h1>
<h1 class="hidden">This is a hidden heading</h1>
<p>Notice that the h1 element with display: none; does not take up any space.</p>
</body>
</html>
-
Like in this banner?
(https://s31.postimg.org/ducz671k9/1111111111111111111111.png)
-
@Daniel PM
<style>
/* Hide h1 tag on mobile devices */
@media screen and (max-width: 480px) {
h1 {display:none}
}
</style>
-
Like this, frosticek?
https://s32.postimg.org/hk9e7105h/fwef.png
-
@Daniel PM
Yes, but you do not have any h1 tags in your code.
-
It's fixed, thanks for your support.