Nomobile and nodesktop
Support forum dedicated to GameNews game Joomla template perfect for gamers, game portal news and reviews with dedicated extensions for rating and video support
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Fri Feb 06, 2015 5:33 pm
- Reply with quote
- Report this post
Hi!
I set suffix
But I want to add responsive google adsense code to be displayed only on mobiles.
So I need to create 2 modules:
1 module displays only on desktops (without mobiles)
2 module displays only on mobiles (without desktops)
How to disable 2-nd module on desktop computers?
I set suffix
- Code: Select all
box nomobile
But I want to add responsive google adsense code to be displayed only on mobiles.
So I need to create 2 modules:
1 module displays only on desktops (without mobiles)
2 module displays only on mobiles (without desktops)
How to disable 2-nd module on desktop computers?
-
- Expert Boarder
- GK User
- Fri Feb 06, 2015 6:45 pm
- Reply with quote
- Report this post
Hi,
in my projects I uses MetaMod or AdvancedModuleManager for it.
in my projects I uses MetaMod or AdvancedModuleManager for it.
-
- Platinum Boarder
- GK User
- Fri Feb 06, 2015 9:20 pm
- Reply with quote
- Report this post
Oscar E wrote:Hi,
in my projects I uses MetaMod or AdvancedModuleManager for it.
Thanks Oskar, but I'd like to use native gavick options for this.
By the way, if you are about browsers section in advanced module manager - it displays notification:
"Keep in mind that browser detection is not always 100% accurate."
Thanks.
-
- Expert Boarder
- GK User
- Fri Feb 06, 2015 11:37 pm
- Reply with quote
- Report this post
yep,
so you can create your own class for sort of screen sizes,
using CSS features.
I mean
so you can create your own class for sort of screen sizes,
using CSS features.
I mean
- Code: Select all
@media only screen and (max-width: ___px) { ... }
-
- Platinum Boarder
- GK User
- Mon Feb 09, 2015 12:56 pm
- Reply with quote
- Report this post
Oscar E wrote:yep,
so you can create your own class for sort of screen sizes,
using CSS features.
I mean
- Code: Select all
@media only screen and (max-width: ___px) { ... }
You want to say, that GameNews template don't have this classes by default?
-
- Expert Boarder
- GK User
- Mon Feb 09, 2015 1:31 pm
- Reply with quote
- Report this post
Version for J3 should have those: https://www.gavick.com/documentation/un ... let-layout
remove dots and use space instead
I show you only alternative possibility before.
.notablet
.nomobile
.onlytablet
.onlymobile
.notablet.nomobile
remove dots and use space instead
I show you only alternative possibility before.
-
- Platinum Boarder
- GK User
- Mon Feb 09, 2015 2:35 pm
- Reply with quote
- Report this post
Oscar E wrote:Version for J3 should have those: https://www.gavick.com/documentation/un ... let-layout
.notablet
.nomobile
.onlytablet
.onlymobile
.notablet.nomobile
remove dots and use space instead
I show you only alternative possibility before.
Thanks man!
If I understood correctly, suffix .notablet.nomobile - will displays module only on desktops.
I will test it
-
- Expert Boarder
- GK User
- Mon Feb 09, 2015 3:10 pm
- Reply with quote
- Report this post
suffix are without "." dots --> must be space
-
- Platinum Boarder
8 posts
• Page 1 of 1