- This topic has 9 replies, 3 voices, and was last updated 7 months ago by Tom.
August 5, 2020 at 3:56 am #1387999Jakub
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 #1388057DavidStaffCustomer SupportAugust 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 #1388416TomLead DeveloperLead Developer
wp_footerhook in a Hook Element. Just be sure to wrap the code in
<script> // The JS in here </script>August 5, 2020 at 10:33 am #1388527Jakub
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 #1388671TomLead DeveloperLead DeveloperAugust 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 #1389690TomLead DeveloperLead Developer
Can you try the updated code?: https://generatepress.com/forums/topic/off-canvas-panel-disappears-before-new-page-loads/#post-1388416August 6, 2020 at 4:07 pm #1390350Jakub
It works now. Thank you Tom!August 7, 2020 at 8:29 am #1391658
- You must be logged in to reply to this topic.