Incompatibility with page builders (e.g. Elementor)
-
Hey this plugin is amazing, and works great with a plain Gutenberg blog post or page.
However when trying to insert the shortcode into an Elementor page builder it seems to spit out duplicate cttm variables causing the map to fail loading.
There is only a single map div in the page source code, just a double up in the javascript area like this:
<script type='text/javascript' id='travelersmap_init-js-extra'> /* <![CDATA[ */ var cttm_options_params = { etc... var cttm_shortcode_60b8bc744acb8 = { etc.. var cttm_options_params = { etc... var cttm_shortcode_60b8bc744acb8 = { etc.. /* ]]> */ </script>
I think if you can prevent it loading double ups of this (i.e. don’t add it if already added) then it should fix up the issue.
Is this project on github? I could take a look if you’re open to contributors.
Cheers,
Dave
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Incompatibility with page builders (e.g. Elementor)’ is closed to new replies.