nomobile notablet issues
Rate this topic: 




1.00 out of 6 based on 1 vote(s)
- GK User
- Sun Mar 10, 2013 7:48 am
- Reply with quote
- Report this post
I'm having some problems. Any module that is assigned notablet or nomobile doesn't not show up at all on desktop view.
-

- Junior Boarder
- teitbite
- Sun Mar 10, 2013 12:59 pm
- Reply with quote
- Report this post
Hi
Please add this code to override.css and remember to allow using this file in template settings:
Please add this code to override.css and remember to allow using this file in template settings:
- Code: Select all
/* tablet/mobile suffixes */
.notablet {
display: block;
}
.nomobile {
display: block;
}
.onlytablet {
display: block;
}
.onlymobile {
display: block;
}
@media only screen and (min-width:720px) and (max-width: 985px) {
.onlytablet {
display: block;
}
.notablet {
display: none;
}
}
@media only screen and (max-width:719px) {
.nomobile {
display: none;
}
.onlymobile {
display: block;
}
}
-

- Moderator
- GK User
- Mon Mar 11, 2013 7:21 pm
- Reply with quote
- Report this post
This didn't entirely work. It did get modules to not show up on tablet and mobile; however, most modules with "notablet and nomobile" are broken on desktop mode. My custom HTML modules code is displayed in the background, filling up the entire wrapper.
-

- Junior Boarder
- teitbite
- Tue Mar 12, 2013 11:38 am
- Reply with quote
- Report this post
Hi
I think I know what is the problem than. Please make sure You have a space in front of the module class suffix. This is important. Suffixes without space are to disable the default style and create Your own.
I think I know what is the problem than. Please make sure You have a space in front of the module class suffix. This is important. Suffixes without space are to disable the default style and create Your own.
-

- Moderator
- GK User
- Tue Mar 12, 2013 4:54 pm
- Reply with quote
- Report this post
I do have a space, I assure you. I can pm you the login details if you'd like to see.
-

- Junior Boarder
- GK User
- Tue Mar 12, 2013 5:21 pm
- Reply with quote
- Report this post
Yeah, definitely problems. The "onlymobile" still does not work much of the time.
-

- Junior Boarder
- teitbite
- Wed Mar 13, 2013 2:34 pm
- Reply with quote
- Report this post
Hi
Ok. Please send me an ftp access to Your site than. I'll check if code was entered properly.
Ok. Please send me an ftp access to Your site than. I'll check if code was entered properly.
-

- Moderator
- teitbite
- Fri Mar 15, 2013 12:46 pm
- Reply with quote
- Report this post
Hi
There was a mistake in my code. .onlymobile { display: none; } of course as default
Fixed and working now.
There was a mistake in my code. .onlymobile { display: none; } of course as default
Fixed and working now.
-

- Moderator
- GK User
- Tue Mar 11, 2014 9:01 pm
- Reply with quote
- Report this post
Hi!
How to hide an extension Highlighter GK5 and News Show Pro?
How to hide an extension Highlighter GK5 and News Show Pro?
-

- Fresh Boarder
- teitbite
- Tue Mar 11, 2014 9:19 pm
- Reply with quote
- Report this post
Hi
By adding a module class suffix " nomobile" in module settings. Or You can call to hide them directly from mobile.css file, but I will need to see the site to tell You the exact code.
By adding a module class suffix " nomobile" in module settings. Or You can call to hide them directly from mobile.css file, but I will need to see the site to tell You the exact code.
-

- Moderator
- teitbite
- Wed Mar 12, 2014 9:59 pm
- Reply with quote
- Report this post
Hi
I have looked inside source code but there is no "nomobile" suffix anywhere. Please tell me which module You want to hide, so I'll tell You a css suffix You will need to add to mobile.css to disable it.
I have looked inside source code but there is no "nomobile" suffix anywhere. Please tell me which module You want to hide, so I'll tell You a css suffix You will need to add to mobile.css to disable it.
-

- Moderator
- GK User
- Thu Mar 13, 2014 9:31 pm
- Reply with quote
- Report this post
Hi!
I need to hide the module Highlighter GK5 (Position "higlights") and a module News Show Pro GK5 (Position "breadcrumb").
I need to hide the module Highlighter GK5 (Position "higlights") and a module News Show Pro GK5 (Position "breadcrumb").
-

- Fresh Boarder
- teitbite
- Fri Mar 14, 2014 10:01 pm
- Reply with quote
- Report this post
Hi
Add this code to mobile.css:
Add this code to mobile.css:
- Code: Select all
#gkHighlights, #gkBreadcrumb {
display: none !important;
}
-

- Moderator
- GK User
- Sat Mar 15, 2014 12:50 pm
- Reply with quote
- Report this post
Hi!
It works. Thank you!
It works. Thank you!
-

- Fresh Boarder
- teitbite
- Sat Mar 15, 2014 2:30 pm
- Reply with quote
- Report this post
Hi
This will remove whole this positions along with any modules published there, but since none of them supports module class suffixes than it's one of the accessible solutions. Other is more restrictive selectors, but I do not think You need it iso complex in this case.
This will remove whole this positions along with any modules published there, but since none of them supports module class suffixes than it's one of the accessible solutions. Other is more restrictive selectors, but I do not think You need it iso complex in this case.
-

- Moderator
16 posts
• Page 1 of 1
