Disable module position in mobile version?

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
Sat Aug 30, 2014 4:38 pm
Reply with quote
Report this post
Hi!

Is it possible to disable module position when users browes site on mobiles?

For example position bottom5

Image
User avatar
Expert Boarder

GK User
Sat Aug 30, 2014 5:16 pm
Reply with quote
Report this post
User avatar
Moderator

GK User
Sat Aug 30, 2014 6:44 pm
Reply with quote
Report this post
Awesome :D
Thanks!
User avatar
Expert Boarder

GK User
Sat Aug 30, 2014 7:05 pm
Reply with quote
Report this post
Hmmmm....

I used prefix nomobile for adsense block - and it's ok, module don't displays on mobiles.
Then, I created new adsense block in bottom 5 position with prefix "onlymobile", but
this block don't displays when I browse site on mobile device.

Image

Furthermore, when this module enabled (with prefix onlymobile) on desktop version
displays empty space on right of module with "nomobile" prefix.

Image

Image

So, onlymobile mode don't works on mobile devices and brokes template on desktop devices.

Same problem with onlytablet prefix...
User avatar
Expert Boarder

GK User
Sun Aug 31, 2014 11:18 am
Reply with quote
Report this post
Could you please post an url to your site?
User avatar
Moderator

GK User
Mon Sep 01, 2014 5:27 pm
Reply with quote
Report this post
Cyberek wrote:Could you please post an url to your site?


Yes, of course - http://balashiha-online.ru/
User avatar
Expert Boarder

GK User
Wed Sep 03, 2014 11:49 am
Reply with quote
Report this post
Could you please disable css compression so I can check where is the problem's source?
User avatar
Moderator

GK User
Wed Sep 03, 2014 4:42 pm
Reply with quote
Report this post
Cyberek wrote:Could you please disable css compression so I can check where is the problem's source?


Done.
User avatar
Expert Boarder

GK User
Thu Sep 04, 2014 9:13 pm
Reply with quote
Report this post
I have checked the onlymobile module and it works fine. The difference is elswhere. As you have placed 2 modules in that position, and one of them is set to double - even when you hide one of them, php that generates the modules doesn't know that the other is hidden and displays first exactly as the second one would be visible.
To correctly achieve the result you would need to create some media queries in your css to override default behave.
User avatar
Moderator

GK User
Sat Sep 06, 2014 7:27 pm
Reply with quote
Report this post
O, I understand.
But what about "Game News" template?
I have same problem.
I placed adsense code in position "topbanner"

Image

and I set suffix "nomobile"

Image

but when I open site on mobiles - this module still displays.

I checked css and added new style

Image

I tryed to set suffixes like "box nomobile" or "nomobile" - no matter, always this module displays in mobiles...

What should I do to fix this problem?
User avatar
Expert Boarder

GK User
Mon Sep 08, 2014 8:10 am
Reply with quote
Report this post
Could you please post an url to your site with Game News template?
User avatar
Moderator

GK User
Mon Sep 08, 2014 10:28 am
Reply with quote
Report this post
Cyberek wrote:Could you please post an url to your site with Game News template?


http://besplatnyeprogrammy.net/
User avatar
Expert Boarder

GK User
Wed Sep 10, 2014 1:14 pm
Reply with quote
Report this post
Your class is currently set to customnomobile. If it isn't what you have entered there, please add space before nomobile in module's Module Class Suffixes element.
User avatar
Moderator


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