- This topic has 14 replies, 2 voices, and was last updated 6 years ago by
Tom.
-
AuthorPosts
-
December 1, 2017 at 11:22 am #439666
Enrico
When you scroll down on landscape view, on Sticky Navigation the secondary navigation awesome symbol “fa fa-bars” is not displayed at the bottom of the menu.
On portrait view it is displayed correctly.
I am using GP 2.0 beta 2 and an Android 7.1 Smartphone, with full HD resolution.
The problem is the same on Chrome and Firefox for Android
December 1, 2017 at 1:48 pm #439744Tom
Lead DeveloperLead DeveloperThanks! Just fixed this in GPP 1.5.6 which will be releasing in the next couple days.
For now, do this:
@media (max-width: 768px) { .slideout-desktop .main-navigation .main-nav li.slideout-toggle { display:none !important; } }
December 1, 2017 at 2:31 pm #439768Enrico
Hi Tom,
if this code is just a temporary fix for me thanks a lot.If this code is the solution, there is a problem. With this CSS, the Sticky Navigation don’t show the “fa-bars” of the secondary menu in portrait and landscape.
So it is worst not better.Now the site use your CSS, so you can see.
December 1, 2017 at 3:12 pm #439781Tom
Lead DeveloperLead DeveloperI’m not sure I understand. The secondary navigation looks normal to me: https://www.screencast.com/t/iToTezFMKJ6C
December 2, 2017 at 12:39 am #439900Enrico
Good, so we found two different problems ๐
You don’t see what I have seen because you don’t scroll down the page to activare the sticky Navigation.
Now I removed your CSS code. When you scroll down on landscape view, on Sticky Navigation, after you click on the main menu, the secondary navigation awesome symbol โfa fa-barsโ it is not displayed at the bottom of the menu. See here.
On portrait view the โfa fa-barsโ it is displayed correctly. You can see it here
A third problem could be that the secondary navigation Menu name, in my case “Argomenti”, it is never displayed on Sticky Navigation. In my opinion it should be like this. I added the secondary menu name “Argomenti” to the Screenshot to make you understand what I mean.
This third point, if it is not a problem, it is a very good enhancement in my opinion.
December 2, 2017 at 1:23 am #439912Enrico
I have edited several time the previous post to eliminate all possible missunderstading and I have inserted 3 images.
December 2, 2017 at 10:02 am #440152Tom
Lead DeveloperLead DeveloperThanks!
The first issue: Your slideout menu is set to Desktop only, so the 3 bars shouldn’t show up on mobile at all. My original code fixes that.
As for the third issue – that’s never been GP functionality. However, you can force the slideout menu to display on mobile (as it currently is).
December 2, 2017 at 11:30 am #440197Enrico
For me your bug was a good feature ๐
Anyway, now I have set the secondary menu in slideout mode both on desktop and mobile.
But on mobile the slideout menu for the sticky menu is the main menu only.
I would like the secondary menu like in the first bug or better like in my third “new feature”. Is it possible in some way?
December 2, 2017 at 12:48 pm #440219Tom
Lead DeveloperLead DeveloperTo use your slideout menu as it was in the bug, you can do this:
@media (max-width: 768px) { .slideout-desktop .main-navigation .main-nav li.slideout-toggle { display:block !important; } }
I’m not 100% clear on the new feature you’re suggesting?
December 2, 2017 at 1:06 pm #440232Enrico
Thanks a lot Tom!
The new feature is the bug I like and the name of the secondary menu.
See the third image of the previous post.
December 2, 2017 at 9:10 pm #440337Tom
Lead DeveloperLead DeveloperTry making this your CSS:
@media (max-width: 768px) { .slideout-desktop .main-navigation .main-nav li.slideout-toggle { display:block !important; } .slideout-desktop .main-navigation .main-nav li.slideout-toggle a:after { content: "Argomenti"; } }
December 3, 2017 at 12:48 am #440379Enrico
Thanks a lot!
The secondary menu is in the primary menu like in desktop. This is very good since this way, on mobile, when you go on the stick menu, you have also the secondary menu like in the desktop.The only problem I found with your last CSS is the name of the secondary menu that is dark grey and not aligned with the “fa-bars” of the menu.
You can see it in this image.
I have set again slideout only on desktop to make it work corretly. Because, if I use slideout mobile and desktop, on mobile, the main menu disappear. With slideout mobile and desktop, only the name of the primary navigation is displayed but it opens the secondary menu.
December 3, 2017 at 8:40 am #440596Tom
Lead DeveloperLead DeveloperAh, I just adjusted the previous CSS so it should work better ๐
December 3, 2017 at 9:50 am #440643Enrico
Just perfect! It is beautiful and clear like this ๐
Thanks a lot Tom!!
December 3, 2017 at 9:51 am #440645Tom
Lead DeveloperLead DeveloperYou’re welcome! ๐
-
AuthorPosts
- You must be logged in to reply to this topic.