H,
Is it possible to show a shorter menu with less items when watching the site on a mobile phone?
Kind regards,
GertJan
teitbite wrote:Hi
Yes You can select a different menu for mobile in template configuration.
teitbite wrote:Hi
Yes You're right. Such option was available with non-responsive templates. I've just looked in wrong template while writing an answer. In this case You can still disable some links with using GK Menu Extra plugin and it's functinality to add class suffixes for menu elements. Than simply add a suffix called "nomobile" to the elements You would like to hide.
/* 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;
}
}
otpion[value="/~madonna/index.php/madonna/biografie/2012/"] {
display: none;
}
teitbite wrote:Hi
This still should go into the override.css but I've made a typo, should be "option" instead of "otpion". Sorry.
#gkMobileMenu select option:nth-child(10) {
display: none;
}
teitbite wrote:Hi
It was just a guess anyway. Got another idea. Try this code:
- Code: Select all
#gkMobileMenu select option:nth-child(10) {
display: none;
}