Replacing custom HTML code
-
The Divi page builder does not use an
iframefor Google Maps, rather it invokes custom JS code that includes severaldivelements in the page.This conflicts with the usual (expected) behavior of the plugin which only targets frame elements and embeds.
I am trying to add a custom provider and, for the sake of testing, I am attempting to use very simple HTML regular expressions to replace some code with the Embed Privacy code. After this first test will be completed successfully, I will update the regex to match the div containing the actual map.
Nevertheless, even super simple expressions such as
<p>HELLO<.p>are not replacing the<p>HELLO</p>paragraph in my test page.How can I ensure that a custom embed provider, added from the WP backend, replaces some HTML code correctly?
Thank you!
The page I need help with: [log in to see the link]
The topic ‘Replacing custom HTML code’ is closed to new replies.