Mobile Only Module Suffix

Support desk for Multipurpose Quark Theme
GK User
Mon Jun 06, 2016 11:52 am
Hi,

I'm trying to hide the header module from mobile displays but the module suffix of "nomobile" isn't working. I've added this code to the override.css and enabled css overrides in template settings.

@media only screen and (min-width:768px) and (max-width:1024px) {
.notablet { display: none !Important; }
}

@media only screen and (max-width:767px) {
.nomobile { display: none !Important; }
}

@media (max-width: 640px){
.onlymobile {
display: block!important;
}
}
User avatar
Fresh Boarder

GK User
Mon Jun 06, 2016 11:55 am
User avatar
Fresh Boarder

teitbite
Sat Jun 11, 2016 9:58 am
Hi

Header module position is using raw style which means that it's not accepting module class suffixes. Pleasesimply hide header in css with code:

Code: Select all
@media only screen and (max-width:767px) {
#gkHeaderMod {
display: none;
}
}
User avatar
Moderator

GK User
Thu Dec 15, 2016 9:04 pm
I'm trying to use wide photos for desktop view and portrait photos for mobile and tablet view. So is there some way for me to use module suffixes to do this without hiding the #header
User avatar
Senior Boarder

teitbite
Tue Dec 20, 2016 7:27 pm
Hi

Header does not support module class suffixes to not destroy layout for this position, but please publish both modules at the same time and tell me the url to page where I'll be able to see it.
User avatar
Moderator

teitbite
Thu Feb 02, 2017 2:02 pm
Hi

You should have let me know You've answered via PM. Just saw it.

Try using a code like:

Code: Select all
#gkHeaderMod > .item-content {
display: none;
}

@media only screen and (min-width:841px) {
#gkHeaderMod > .item-content:first-child {
display: block;
}
}

@media only screen and (max-width:840px) {
#gkHeaderMod > .item-content:nth-child(2) {
display: block;
}
}
User avatar
Moderator


cron