{"id":904,"date":"2024-05-07T11:45:23","date_gmt":"2024-05-07T11:45:23","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/shortpixel-adaptive-image-errors-when-divi-toolbox-is-enabled\/"},"modified":"2025-08-27T08:40:40","modified_gmt":"2025-08-27T08:40:40","password":"","slug":"shortpixel-adaptive-image-errors-when-divi-toolbox-is-enabled","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/shortpixel-adaptive-image-errors-when-divi-toolbox-is-enabled\/","title":{"rendered":"ShortPixel Adaptive Image errors when Divi Toolbox is enabled"},"content":{"rendered":"\n<p>The following code from Divi Toolbox&#8217;s JavaScript removes occurrences of <code>by<\/code> and <code>,<\/code> without discernment in some blocks of HTML, randomly breaking the metadata of ShortPixel Adaptive Images.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">if (toolbox_values.dtb_post_meta == 1) {<br>\t $(\".post-meta, .archive #left-area .et_pb_post, .et_pb_title_meta_container\").html(function () {<br>\t return $(this).html().replace(\/|\/g, '').replace('by', '').replace('...', '').replace(\/,\/g, '');<br>\t });<br>}<\/pre>\n\n\n\n<p>In order to solve this, please <strong>disable the setting &#8220;Custom Post Meta&#8221; on Divi Toolbox&#8217;s settings<\/strong>. Your images will reappear.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following code from Divi Toolbox&#8217;s JavaScript removes occurrences of by and , without discernment in some blocks of HTML, randomly breaking the metadata of ShortPixel Adaptive Images. if (toolbox_values.dtb_post_meta == 1) { $(&#8220;.post-meta, .archive #left-area .et_pb_post, .et_pb_title_meta_container&#8221;).html(function () { return $(this).html().replace(\/|\/g, &#8221;).replace(&#8216;by&#8217;, &#8221;).replace(&#8216;&#8230;&#8217;, &#8221;).replace(\/,\/g, &#8221;); });} In order to solve this, please disable the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[35],"glossaries":[],"doc_tag":[],"class_list":["post-904","docs","type-docs","status-publish","hentry","doc_category-shortpixel-adaptive-images"],"blocksy_meta":[],"year_month":"2026-05","word_count":82,"total_views":"1029","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"ShortPixel Adaptive Images","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/shortpixel-adaptive-images\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=904"}],"version-history":[{"count":1,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/904\/revisions"}],"predecessor-version":[{"id":2120,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/904\/revisions\/2120"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=904"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=904"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=904"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}