ShortPixel Adaptive Image errors when Divi Toolbox is enabled

The following code from Divi Toolbox's JavaScript removes occurrences of "by" and commas without discernment in some blocks of HTML, randomly breaking the metadata of ShortPixel Adaptive Images.

if (toolbox_values.dtb_post_meta == 1) {
	 $(".post-meta, .archive #left-area .et_pb_post, .et_pb_title_meta_container").html(function () {
	 return $(this).html().replace(/\|/g, '').replace('by', '').replace('...', '').replace(/,/g, '');

In order to solve this, please deactivate the setting "Custom Post Meta" on Divi Toolbox's settings. Your images will reappear.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us