Disable module position in mobile version?
Rate this topic: 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
Is it possible to disable module position when users browes site on mobiles?
For example position bottom5
-
- Expert Boarder
- GK User
- Sat Aug 30, 2014 5:16 pm
- Reply with quote
- Report this post
Please check this documentation:
https://www.gavick.com/documentation/un ... et-layout/
https://www.gavick.com/documentation/un ... et-layout/
-
- Moderator
- 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.
Furthermore, when this module enabled (with prefix onlymobile) on desktop version
displays empty space on right of module with "nomobile" prefix.
So, onlymobile mode don't works on mobile devices and brokes template on desktop devices.
Same problem with onlytablet prefix...
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.
Furthermore, when this module enabled (with prefix onlymobile) on desktop version
displays empty space on right of module with "nomobile" prefix.
So, onlymobile mode don't works on mobile devices and brokes template on desktop devices.
Same problem with onlytablet prefix...
-
- 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?
-
- 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/
-
- 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?
-
- 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.
-
- 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.
To correctly achieve the result you would need to create some media queries in your css to override default behave.
-
- 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"
and I set suffix "nomobile"
but when I open site on mobiles - this module still displays.
I checked css and added new style
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?
But what about "Game News" template?
I have same problem.
I placed adsense code in position "topbanner"
and I set suffix "nomobile"
but when I open site on mobiles - this module still displays.
I checked css and added new style
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?
-
- 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?
-
- 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/
-
- 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.
-
- Moderator
13 posts
• Page 1 of 1