Tagged: main-menu
-
AuthorPosts
-
May 12, 2021 at 3:56 pm #1299956
Hello!
My page https://palletbar.ee has an issue with main menu.
When you pick any other menu item than “Esileht”, page anchors to the correct section and then pick the same section again from menu, then menu disappears and section will stay there. But for “Esileht”, when you pick “Esileht” from the menu, it anchors correctly to its section, but now when you pick “Esileht” again, then the menu won’t disappear.
As a conclusion, why wouldn’t menu disappear only for “Esileht” section, when setion is already picked but for others it disappears?
All of them are color sections.
“Esileht” has also ID that it anchors with, but “Esita tellimus” has too and it is working.
And the second question would be how can i change the background opacity for iframe?
- This topic was modified 3 years, 7 months ago by krmaeo.
May 13, 2021 at 1:07 pm #1300137Hey krmaeo,
Thank you for the inquiry.
It works like that because the theme prevents scroll when the current position is equal to the current target position, so the state remains the same. You can find the condition in the avia.js > line 783.
if(cur_offset != target) // if current pos and target are the same dont scroll
And as user, I do not think someone would intentionally click on the same navigation or menu item twice.
Best regards,
IsmaelMay 14, 2021 at 12:44 am #1300207But how this doesn’t work for other items than only for the first one (“esileht”)?
I mean, even if the section is the same that i’ll pick from menu, I’d still like menu to disappear when I click it. For “Esileht” it won’t make the menu disappear when the section is already picked. For others it doesn’t scroll, but successfully disappears the menu.
- This reply was modified 3 years, 7 months ago by krmaeo.
May 17, 2021 at 1:13 pm #1300725Hi,
I’d still like menu to disappear when I click it
Yes, we understand but unfortunately that is not how the mobile menu works. It stops the default behavior when it detects that the current position is the same as the target element. You could try and remove the condition that we mentioned above to alter the default behavior.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.