{"id":704,"date":"2024-05-07T11:41:51","date_gmt":"2024-05-07T11:41:51","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/i-installed-shortpixel-adaptive-images-but-it-doesnt-seem-to-work\/"},"modified":"2025-08-27T08:46:34","modified_gmt":"2025-08-27T08:46:34","password":"","slug":"i-installed-shortpixel-adaptive-images-but-it-doesnt-seem-to-work","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/i-installed-shortpixel-adaptive-images-but-it-doesnt-seem-to-work\/","title":{"rendered":"I installed ShortPixel Adaptive Images but it doesn&#8217;t seem to work"},"content":{"rendered":"<h2>Known conflicts, issues and workarounds<\/h2>\n<p>\n\t Please take a look at <a style=\"font-size: 14px;\" href=\"https:\/\/help.shortpixel.com\/article\/504-known-plugin-and-theme-conflicts-issues-and-workarounds\" rel=\"noopener\">this article<\/a> to know more about this.<\/p>\n<h2>General issues<\/h2>\n<p>If you installed <a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-adaptive-images\/\" target=\"_blank\" rel=\"noopener\">ShortPixel Adaptive Images<\/a> (SPAI) on your website and, after checking <a href=\"https:\/\/help.shortpixel.com\/article\/240-is-shortpixel-adaptive-images-working-well-on-my-website\" target=\"_blank\" rel=\"noopener\">if it&#39;s working well<\/a>, it doesn&#39;t seem to do it, then the usual reasons are:<\/p>\n<ul>\n<li>Your <strong>domain is not associated<\/strong> to your account: <a href=\"https:\/\/help.shortpixel.com\/article\/94-how-to-associate-a-domain-to-my-account\" target=\"_blank\" rel=\"noopener\">How can I associate a domain to my account?<\/a><\/li>\n<li>You don&#8217;t have <strong>enough available optimization credits<\/strong>. If this is the case, please purchase a new plan.<\/li>\n<li>The <strong>API URL&nbsp;is not correct<\/strong>. It is located on&nbsp;Settings &gt; ShortPixel AI &gt; Behaviour and by default it should be &#8220;<a href=\"https:\/\/cdn.shortpixel.ai\/spai\" style=\"font-weight: bold;\" rel=\"noopener\">https:\/\/cdn.shortpixel.ai\/spai<\/a>&#8221; (see image below);&nbsp;<strong>only change it if you know what you&#8217;re doing.<br \/>\n\t <img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-iufxhaPTLq.jpg\"><\/strong><\/li>\n<li>You use a caching plugin or your hosting provider uses a caching mechanism, and <strong>the cache has not been flushed<\/strong> after installing and configuring SPAI. The solution is to flush your cache to get rid of old image URLs being displayed. To do a proper cache clearing, please read this article:&nbsp;<strong><a href=\"https:\/\/help.shortpixel.com\/article\/426-how-to-clear-wordpress-cache\" rel=\"noopener\">How to clear WordPress cache<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/help.shortpixel.com\/article\/426-how-to-clear-wordpress-cache\" rel=\"noopener\"><\/a><\/strong>There is another plugin or theme that has a&nbsp;<strong style=\"background-color: initial;\">lazy loading<em>&nbsp;<\/em>feature&nbsp;activated<\/strong> and this conflicts with SPAI. The solution is to deactivate this functionality&nbsp;on the plugin or theme that use it. Please notice that you don&#8217;t need to disable lazy loading on videos or other resources; only image lazy loading must be disabled.<\/li>\n<li><strong>Your images are already being delivered as WebP<\/strong>. Please deactivate any other WebP delivering method that is <strong>not <\/strong>provided by ShortPixel Adaptive Images.<\/li>\n<li>SPAI&#8217;s&nbsp;<strong>JavaScript files are blocked<\/strong> or unregistered with another optimization plugin. For example,&nbsp;Asset CleanUp can stop such Javascript files if you tell it to do so. Please check all the optimization plugins to make sure that they don&#8217;t block anything related to SPAI.<\/li>\n<li><strong>jQuery has been disabled<\/strong> either manually or by another plugin. In this case, SPAI will not work properly. Please make sure jQuery is enabled.<\/li>\n<li>Your hosting provider is <strong>SiteGround <\/strong>and you are working on a <strong>staging site<\/strong>. The way SiteGround creates staging sites is a little bit different: they are using a filter to replace the domain names in the URLs. Please ignore any malfunction in this case, as the live site will probably work correctly.<\/li>\n<li>There is a&nbsp;<strong><a href=\"https:\/\/shortpixel.com\/knowledge-base\/article\/504-known-plugin-and-theme-conflicts-issues-and-workarounds\" target=\"_blank\" rel=\"noopener\">conflict with another plugin or theme<\/a>.<\/strong><\/li>\n<\/ul>\n<h2><\/h2>\n<h2>Only some images are not optimized<\/h2>\n<p>Sometimes SPAI is actually working correctly, but not all the images are being served from our CDN. This can happen because:<\/p>\n<ul>\n<li>The images are background images (&quot;background-image&quot; CSS property) declared in .css files. Please activate the &quot;<a href=\"https:\/\/help.shortpixel.com\/article\/273-how-does-the-replace-in-css-files-feature-work\" target=\"_blank\" rel=\"noopener\"><strong>Replace in CSS files<\/strong><\/a>&quot; option.<\/li>\n<li>The piece of content containing that image is built dynamically by Javascript (either the theme&#39;s or from a plugin). Please activate first the &quot;<strong>Replace in JSON data<\/strong>&quot; option (located on Settings &gt; ShortPixel AI &gt; Areas), and if there still are images not optimized, activate the &quot;<strong>Replace in the JS blocks<\/strong>&quot; option too. If neither of these solve all the cases, it might be that the dynamical part is built by a different means and we might need to code a custom integration for this situation. Please <a href=\"https:\/\/shortpixel.com\/contact\" target=\"_blank\" rel=\"noopener\">contact us<\/a> to check if this is possible in your case.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Known conflicts, issues and workarounds Please take a look at this article to know more about this. General issues If you installed ShortPixel Adaptive Images (SPAI) on your website and, after checking if it&#39;s working well, it doesn&#39;t seem to do it, then the usual reasons are: Your domain is not associated to your account: [&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-704","docs","type-docs","status-publish","hentry","doc_category-shortpixel-adaptive-images"],"blocksy_meta":[],"year_month":"2026-04","word_count":548,"total_views":"1611","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\/704","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=704"}],"version-history":[{"count":1,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/704\/revisions"}],"predecessor-version":[{"id":2653,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/704\/revisions\/2653"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=704"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=704"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}