- This topic has 9 replies, 3 voices, and was last updated 7 months ago by
Tom.
-
AuthorPosts
-
August 5, 2020 at 3:56 am #1387999
Jakub
Hi,
I am using the off canvas menu for mobile on my site. When I click on of the menu items the Off Canvas Panel disappears, the current page is displayed and then the new page loads. I think it would look nicer without the brief jump back to the current page. Is there a way to keep the Off Canvas Panel displayed until the new page is shown?
August 5, 2020 at 5:27 am #1388057David
StaffCustomer SupportHi there,
which device are you seeing this on? Or any particular link ?
Its behaving normally on my iphone which is to navigate to the new page before closing.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 5, 2020 at 6:05 am #1388108Jakub
It works fine on Safari (both desktop and ios).
I see the error on desktop Chrome and Firefox as well as mobile Chrome and Samsung Internet App.August 5, 2020 at 8:35 am #1388416Tom
Lead DeveloperLead DeveloperHi there,
This functionality is intended. However, you may be able to disable it with some custom javascript: https://gist.github.com/generatepress/35c505f1aac124edf071f9008061ee6d
If you don’t have a javascript file to edit, you can use the
wp_footer
hook in a Hook Element. Just be sure to wrap the code in<script>
tags:<script> // The JS in here </script>
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 5, 2020 at 10:33 am #1388527Jakub
Hi Tom,
I’ve added the code you gave into the wp_footer via hook element, but the functionality doesn’t seem to have changed.
August 5, 2020 at 12:41 pm #1388671Tom
Lead DeveloperLead DeveloperCan you try giving the Hook Element a high priority? Something like
1000
.Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 5, 2020 at 3:19 pm #1388794Jakub
I’ve set the priority to 1000, but I think nothing changed.
August 6, 2020 at 8:38 am #1389690Tom
Lead DeveloperLead DeveloperCan you try the updated code?: https://generatepress.com/forums/topic/off-canvas-panel-disappears-before-new-page-loads/#post-1388416
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 6, 2020 at 4:07 pm #1390350Jakub
It works now. Thank you Tom!
August 7, 2020 at 8:29 am #1391658Tom
Lead DeveloperLead DeveloperYou’re welcome! π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.