Title: Replace image with WebP version using styles
Last modified: November 24, 2019

---

# Replace image with WebP version using styles

 *  Resolved [steveonz](https://wordpress.org/support/users/steveonz/)
 * (@steveonz)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/replace-image-with-webp-version-using-styles/)
 * Hi there,
 * I am trying to replace the standard version of my images with the WebP version.
 * I have several pages which display a hero image, but they use a style to serve
   the background image e.g.
 * _[ redundant link removed ]_
 * `<div class="upb_row_bg vcpb-default" data-upb_br_animation="" data-parallax_sense
   ="30" data-bg-override="ex-full" data-bg-animation="left-animation" data-bg-animation-
   type="h" data-animation-repeat="repeat" style="background-size: cover; background-
   repeat: no-repeat; background-color: rgba(0, 0, 0, 0); background-image: url(&
   quot;https://linktechaustralia.com.au/wp-content/uploads/2019/11/what-we-do-linktech-
   australia.jpg&quot;); background-attachment: scroll; min-width: 1348px; left:
   0.5px; width: 1348px;">`
 * I have found a place in settings “WebP Attribute To Replace,” but I am unsure
   what I need to add so I can force the WebP version.
 * Any help would be great, thanks!
    -  This topic was modified 6 years, 6 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
    -  This topic was modified 6 years, 6 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freplace-image-with-webp-version-using-styles%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/replace-image-with-webp-version-using-styles/#post-12169411)
 * Hi,
 * Currently LSCWP does not support web replacement in CSS
 * Best regards,
 *  [mbrinson](https://wordpress.org/support/users/mbrinson/)
 * (@mbrinson)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/replace-image-with-webp-version-using-styles/#post-12710719)
 * Darn, I’m so sad to hear that qtwrk.
 * Are there any plans to add this functionality in the future?
    I found the correct
   css selector to add in my scenario (verified to drill down to the applicale html
   block where the links to the .jpg links are that I want to have replaced with.
   webp versions), but no joy. Now I know why, but I’m hopeful that this will be
   supported in the future?
 * There are MANY slider plugins for WordPress that use this method of displaying
   the slider images, so I would imagine that this is affecting many users of litespeed
   cache plugin, but they just don’t know it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Replace image with WebP version using styles’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [lightspeed cache](https://wordpress.org/support/topic-tag/lightspeed-cache/)
 * [webp](https://wordpress.org/support/topic-tag/webp/)

 * 2 replies
 * 3 participants
 * Last reply from: [mbrinson](https://wordpress.org/support/users/mbrinson/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/replace-image-with-webp-version-using-styles/#post-12710719)
 * Status: resolved