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: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.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
Code: Select all
box nomobile
for google adsense module and now this module don't displays on mobiles.
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?
User avatar
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.
User avatar
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.
User avatar
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
Code: Select all
@media only screen and (max-width: ___px) { ... }
User avatar
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?
User avatar
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
.notablet
.nomobile
.onlytablet
.onlymobile
.notablet.nomobile


remove dots and use space instead

I show you only alternative possibility before.
User avatar
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 :D
User avatar
Expert Boarder

GK User
Mon Feb 09, 2015 3:10 pm
Reply with quote
Report this post
suffix are without "." dots --> must be space
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.