- This topic has 6 replies, 3 voices, and was last updated 2 weeks, 1 day ago by Tom.
May 12, 2020 at 12:53 am #1280342Basello
I am tring to hook some shortcode inside the slideout menu
If it is hooked in “before_main_content” (using Elements hook) for exemple there is no problem.
I have the same issue with some script, for exemple a geolocation script from revolvermap:
Is it a problem related to the theme?
Do I have to set something differently?
Thank you for your help.May 12, 2020 at 5:12 am #1280618DavidStaffCustomer SupportMay 12, 2020 at 5:24 am #1280632Basello
Thank you for your answer.
If I insert the shortcode via the Off Canvas Widget area it doesn’t work either.
I just add it if you want to see.May 12, 2020 at 5:31 am #1280644Basello
It happens the same way if the shortcode is add in the widget panel or hooked.May 12, 2020 at 3:49 pm #1281689TomLead DeveloperLead Developer
It sounds like the script isn’t executing while it’s in a hidden div.
I wonder if there’s a way we can kick-start once the panel opens? The devs of the script would know.
Let me know 🙂May 21, 2020 at 5:10 am #1295192Basello
Thank you for your help.
I contacted the developers of the map plugin and did some test…
In fact the problem is probably due to a “responsive” functionality.
When you open the off panel menu, the card remains gray: that’s the problem. Just shorten the browser window for it to appear. Or on a smartphone, simply tilt the smartphone vertically or horizontally for the map to appear.
So, I think I have to find a way to reload the contents of the off panel menu once opened, make sure to force the resizing process…May 21, 2020 at 2:31 pm #1295969TomLead DeveloperLead Developer
That could just mean they have code to re-initialize their script if the browser resizes. If that’s the case, there should be a way to initialize it when the panel opens.
- You must be logged in to reply to this topic.