Title: Background Size CSS
Last modified: January 18, 2020

---

# Background Size CSS

 *  Resolved [ThePopularizer](https://wordpress.org/support/users/thepopularizer/)
 * (@thepopularizer)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/)
 * Hi there,
 * Flying Images seems to reformat the background CSS style from “background-image”
   to “background”. This overrides background-size and other attributes. Can it 
   preserve “background-image” as it is?

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

 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12338624)
 * [@thepopularizer](https://wordpress.org/support/users/thepopularizer/) i believe
   this was already fixed. Are you using the latest version?
 *  Thread Starter [ThePopularizer](https://wordpress.org/support/users/thepopularizer/)
 * (@thepopularizer)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12339882)
 * Yes, 2.4.1.
 * I just checked, and it seems to alternate from “background-image” to “background”
   upon force refresh. Most strange.
 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12340618)
 * [@thepopularizer](https://wordpress.org/support/users/thepopularizer/) can you
   share the url?
 *  Thread Starter [ThePopularizer](https://wordpress.org/support/users/thepopularizer/)
 * (@thepopularizer)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12340633)
 * Certainly:
 * [https://www.showcase.thepopularizer.com/location/](https://www.showcase.thepopularizer.com/location/)
 * I just checked, and I see that if you’re logged out, it’s stuck on “background”.
   When I’m logged in, it switches from one to the other.
 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12341360)
 * [@thepopularizer](https://wordpress.org/support/users/thepopularizer/) Flying
   Images doesn’t process images if you’re logged in as admin.
 * Also, from testing locally, I can confirm them it respects both `background` 
   and `background-image`.
 *  Thread Starter [ThePopularizer](https://wordpress.org/support/users/thepopularizer/)
 * (@thepopularizer)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12343118)
 * Hm, that’s strange. It seems to be processing as I’m logged in as admin, *and*
   not respecting “background-image” for me:
 * > [View post on imgur.com](https://imgur.com/a/ZK36j9h)
 * Shall I email you a login so you can check it out?
 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12343554)
 * [@thepopularizer](https://wordpress.org/support/users/thepopularizer/) yes, pls
   email me the details [gijovarghese141@gmail.com](https://wordpress.org/support/topic/background-size-css/gijovarghese141@gmail.com?output_format=md)
 *  [Marc Wiest](https://wordpress.org/support/users/marclarr/)
 * (@marclarr)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12345275)
 * Same issue here, I just updated the plugin to the latest version (as of now),
   cleared the cache and hard-refreshed the page. No luck. Battled the issue via
   the use of `!important` inside CSS. The image in question is the hero bg-img.
 * [https://beedelightful.com/learn-more/?kinsta-cache-cleared=true](https://beedelightful.com/learn-more/?kinsta-cache-cleared=true)
    -  This reply was modified 6 years, 4 months ago by [Marc Wiest](https://wordpress.org/support/users/marclarr/).
 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12351557)
 * [@thepopularizer](https://wordpress.org/support/users/thepopularizer/) I checked
   it in detail. I can see that Flying Images don’t replace `background-image` to`
   background`. You can confirm it by looking at the source code [http://tinyurl.com/wc3exhw](http://tinyurl.com/wc3exhw)
 * However, while checking through the inspector, looks like some script changed
   it back to `background`. Also added `center -16px` (this was not present in the
   source HTML). See [http://tinyurl.com/v67mpqp](http://tinyurl.com/v67mpqp)
 * So I think some other plugin/theme is co nflicting with Flying Images’ lazy loading.
   I can see that it works fine if lazy loading in Flying Images is disabled.
 * Are you using any other plugin/code for lazy loading? If so disable it?
 * If this only happening to that particular image, try excluding it from lazy loading.
   Since it’s in the above fold, it’s better to exclude to improve performance.
 *  Thread Starter [ThePopularizer](https://wordpress.org/support/users/thepopularizer/)
 * (@thepopularizer)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12356405)
 * I think I might know what it is. I’m using a parallax script (paroller.js). It
   may be rewriting the css for parallax purposes. Is there a way to make lazy loading
   compatible with it? Anyway, thank you. I’ll work around this issue for now.
 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12356442)
 * [@thepopularizer](https://wordpress.org/support/users/thepopularizer/) I’m not
   familiar with paroller.js and how it works. I don’t think I can support it
 *  Thread Starter [ThePopularizer](https://wordpress.org/support/users/thepopularizer/)
 * (@thepopularizer)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12360555)
 * OK, thanks anyhow.

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

The topic ‘Background Size CSS’ is closed to new replies.

 * ![](https://ps.w.org/nazy-load/assets/icon-256x256.png?rev=2177344)
 * [Flying Images: Optimize and Lazy Load Images for Faster Page Speed](https://wordpress.org/plugins/nazy-load/)
 * [Support Threads](https://wordpress.org/support/plugin/nazy-load/)
 * [Active Topics](https://wordpress.org/support/plugin/nazy-load/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nazy-load/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nazy-load/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [ThePopularizer](https://wordpress.org/support/users/thepopularizer/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/background-size-css/#post-12360555)
 * Status: resolved