Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva
Last active May 28, 2026 12:09
Show Gist options
  • Select an option

  • Save cre8tivediva/a6c7c82f989b921e6cd57e35bd43d3c2 to your computer and use it in GitHub Desktop.

Select an option

Save cre8tivediva/a6c7c82f989b921e6cd57e35bd43d3c2 to your computer and use it in GitHub Desktop.
Fix Kadence / Liquid Web Broken Images
/* Create a new bookmark in your browser. Name it Fix Kadence Images. Then take line 4 and copy/paste it in the URL of the bookmark then save it. Then add the bookmark to your Bookmark toolbar. To execute it, go to a support document where images do not appear > click your bookmark and you should see the images. See video here: https://app.screencast.com/2vHkiwKUcJpUL
javascript:(()=>{document.querySelectorAll('img').forEach(img=>{function r(url){return url?url.replace(/^https?:\/\/(?:www\.)?liquidweb\.com/i,'https://www.kadencewp.com'):url}['src','data-src'].forEach(attr=>{if(img.hasAttribute(attr)){img.setAttribute(attr,r(img.getAttribute(attr)))}});if(img.hasAttribute('srcset')){img.setAttribute('srcset',img.getAttribute('srcset').split(',').map(item=>{const parts=item.trim().split(/\s+/);parts[0]=r(parts[0]);return parts.join(' ')}).join(', '))}});})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment