Archived topic
Mobile secondary menu without click on menu label
6 replies · Started by Roy on October 16, 2017
Hi,
I'm using the secondary menu for polylang switching language feature.
I wan't that the two flags will be shown above the logo in mobile, without clicking the "menu" label.
I tried to follow this issue without success: https://generatepress.com/forums/topic/secondary-navigation-on-mobile-question/#post-120014.
I think there is 2 options:
1. show the menu links without clicking on menu label (like the desktop version)
2. If it's possible - put the language switcher widget in a header hook.
Thanks!
Hi there,
Try this: https://docs.generatepress.com/article/disable-secondary-navigation-mobile-menu/
Awesome, Thanks!
Another question for this site -
In Hebrew version the image align in mobile is ok:
https://s26.postimg.org/s1tm1t8ll/Customize.png
In English version in mobile is not ok:
https://s26.postimg.org/t5dqdrt8p/Customize_About_Gilad_Team.png
Thanks!
Hmm not sure why it would be correct in Hebrew.
Try this CSS:
@media (max-width: 768px) {
alignright {
float: right;
}
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
I think you misseda dot before the align right ( .alignright ).
The code affects both languages. The English version now is good, but the Hebrew not.
How can I define the code to affect only the English version?
I fixed it with this code:
@media (max-width: 768px) {
.rtl .alignright {
float: left;
}
.alignright {
float: right;
}
}
is it ok?
Yup that's perfect :)