# Sync WordPress CSS Images

![WordPress logo](https://sirv.sirv.com/website/wordpress-logo.png?h=155)

The [Sirv plugin for WordPress](/help/integrations/wordpress-woocommerce/using-sirv-wordpress/) will sync as many images as possible to your Sirv account and deliver them resized, optimized and in next-gen formats from Sirv CDN.

Background CSS images can also be served from Sirv, by telling Sirv where your external CSS files are located. Follow the steps below.

## How to sync background images

Your external CSS files are located somewhere on your WordPress server. We need to find that location, so the files can be scanned.

Your CSS files might be in your active theme folder (or in a page builder’s folder, such as [Elementor](/help/integrations/cms-website-builders/embed-360-spins-in-elementor/)), which makes this really simple. Otherwise, you must identify the folder location of the files. Here’s how to do it:

**1.** Click the **Synchronization** tab on the Sirv plugin Settings page.

**2.** Click **Scan CSS for images** to check if your CSS files are being served from your active theme.

![CSS background image settings in Sirv plugin](https://docs.sirv.com/img/help/screenshots/arrows-2026-11/wordpress-sync-css-wordpress-plugin-sirv-css-background-image-sync.png)

**3.** If many images were found and synced, then that’s a good indication that your site is using your active theme. That’s it - you’ve finished! Otherwise, continue to step 4. **4A.** If no images were synced, they’ll be located elsewhere on your server. To identify where, open your website and open your browser console (Windows keyboard shortcut CTRL + Shift + I Mac keyboard shortcut Command + Shift + I). **4B.** Click the **Network** tab and click **Images**. For fewer results, enter -sirv to filter out non-Sirv images:

![Find your WordPress images in the browser console](https://docs.sirv.com/img/help/screenshots/arrows-2026-11/wordpress-sync-css-wordpress-plugin-sirv-css-background-console-v3.png)

**4C.** Click one of the images being served from your domain. In the **Headers** section, the **Referrer** will contain the folder path that you need. Copy it:

![Find referrer for image served by WordPress](https://docs.sirv.com/img/help/screenshots/arrows-2026-11/wordpress-sync-css-wordpress-plugin-sirv-css-background-console-header-v3.png)

**4D.** Go back to the Sirv plugin, click **Folder** and paste the folder path:

![Enter folder path to CSS files](https://sirv.sirv.com/website/screenshots/wordpress/sync-css/wordpress-plugin-sirv-css-background-image-folder-results.png?profile=screenshots-grey-border)

In this example, the path is: wp-content/cache/asset-cleanup/css/item/

**5.** Click the button to “Scan CSS for images” and if that was the correct folder location, your background images will be successfully synced to Sirv.

In the screenshot above, 62 images were synced to Sirv.

## Images to be synced

All images on your domain will be synced to your Sirv account. Images will not sync if they are:

-   On another domain
-   Inaccessible
-   Access denied

## Features of background CSS sync

Benefits of serving your CSS background images from Sirv:

-   **Image optimization** - best possible image optimization, will maximize your PageSpeed score.
-   **Next-gen formats** - Sirv automatically serves formats such as WebP (recommended by Google).
-   **Sirv CDN** - images served from the nearest CDN location, for [faster loading](/help/integrations/wordpress-woocommerce/speed-up-wordpress/).
-   **HTTP/2 & TLS1.3** - the latest technologies for fast and secure file transfer.
-   **Browser caching** - choose how long browsers [cache your images](/help/guides/cdn-file-cache-purge/#browser-cache-duration) for.

Features not available to CSS background images:

-   **Lazy loading** - images will load on page load, not lazily (unlike images in your [posts and pages](/help/integrations/wordpress-woocommerce/add-sirv-media-to-posts-and-pages/) and [Media Library](/help/integrations/wordpress-woocommerce/manage-wordpress-media-with-sirv/)).
-   **Automatic scaling** - images won’t be scaled, so add w or h to the URL to [scale an image](/help/dynamic-imaging/resize/).

## Advanced options

To add/edit/remove any CSS images, click to show the CSS code, perform your edits, then click **Save CSS code** once you’ve finished:

![CSS for changing background image paths to Sirv](https://sirv.sirv.com/website/screenshots/wordpress/sync-css/wordpress-plugin-sirv-css-background-CSS-code.png?profile=screenshots-grey-border)

Your CSS background images then load from Sirv like the rest of your WordPress images.
