Theme Blvd Layout Builder plugin conflict after updating
-
Topic
-
After the most recent 2 updates of the Denali theme and the Layout Builder plugin, this other plugin – PHPEnkoder – stopped working on any content built with the Layout Builder.
PHPEnkoder hides emails from bots with javascript:
https://wordpress.org/plugins/php-enkoder/PHPEnkoder still works if I use its shortcode, and it works on pages & posts if I build the content the standard WP way, without the Layout Builder. But I’d like it to work the way it was working before the updates, the way it’s supposed to work: it just automatically hides emails in the source code with javascript that turns them back into readable, clickable mailto links on the page. It used to do that even in content built with the Layout Builder until the recent updates of Layout Builder.
I first asked the author of PHPEnkoder for help, and here is what he said:
“My guess is that their layout builder isn’t properly running filters, which is how PHP Enkoder finds the emails. The workaround would be to make sure that the layout builder runs filters by calling apply_filters (https://codex.wordpress.org/Function_Reference/apply_filters) at the right point. You might be able to do this with a child theme, but then again you might not… it really depends on how their plugin works.
Maybe the Theme Blvd people can help? The problem is virtually certainly in their code…”Here you can see it working on a test page in Denali, built without the Layout Builder:
http://insightgraphicdesign.net/test/crossroads/phpenkoder-test/Here you can see it not working on a page built with the Layout Builder:
http://insightgraphicdesign.net/test/crossroads/contact-us/
It used to hide all those emails listed in the blue section below the map — that is how it works on my other sites, in other themes, too.To be clear: the hiding is done in the source code – not on the page – so whether it’s working or not, the emails are visible on the page. But when it’s working, the emails are hidden in the source code.
If this is not something you can fix within the Layout Builder plugin or the Denali theme, is there any function I could add to my Child Theme to fix it?
- You must be logged in to reply to this topic.