Hello Enfold support team,
on my Enfold site I am using external JavaScript as a booking module for appointments.
It has a negative impact on page speed.
I see Enfold has a “Click to load solution” for google maps shortcode.
Can I use that somehow for my own booking module?
Thanks!
Hey Flow9999,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Victoria
Thank you very much for the fast response!
However Enfold already has it implemented for its own Google Maps shortcode.
So all I need is to find where the existing solution for “click to load” from enfold is located (in terms of code)
Hi,
Sorry for the late reply, the code for the “click to load” is written in the \enfold\config-templatebuilder\avia-shortcodes\google_maps\google_maps.php file
I don’t believe it’s something that you are going to be able to use elsewhere.
You may find this more helpful: jQuery Tutorial: AJAX Load Content With No Page Refresh
or this: Using AJAX With PHP on Your WordPress Site With Your Own Plugin
I also believe there is an ajax plugin that can help with this.
Best regards,
Mike