Title: background-image?
Last modified: August 30, 2016

---

# background-image?

 *  [jeremy2805](https://wordpress.org/support/users/jeremy2805/)
 * (@jeremy2805)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/background-image-105/)
 * Hello,
 * I can see this plugin working for img elements and use it on pretty much all 
   my projects, but in this instance I have had to change the images on a slider
   to use background-image as it was the only way I could get them to behave as 
   the client wanted.
 * These slider images are pretty big so if there is a way for me to make them responsive,
   I’m keen to try it.
 * I can’t see any srcset attributes being produced (I’m not even sure that srcset
   works with background-image), so I’m guessing the plugin doesn’t do them. However,
   I just saw this codepen which seems to do what I’m after:
 * [http://codepen.io/jessekernaghan/pen/wGjtC](http://codepen.io/jessekernaghan/pen/wGjtC)
 * Is this the right approach? Do you have anything in the pipeline that addresses
   background-images? Am I missing a trick?
 * Many thanks. J
 * [https://wordpress.org/plugins/ricg-responsive-images/](https://wordpress.org/plugins/ricg-responsive-images/)

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

 *  Plugin Author [tevko](https://wordpress.org/support/users/tevko/)
 * (@tevko)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/background-image-105/#post-6355689)
 * Hey Jeremy, thanks for the interesting question. While the plugin doesn’t handle
   background images, you can get a list of images and sizes for the psuedo srcset
   tag in that codepen you linked to. Here’s what that would look like in PHP with
   the plugin installed:
 * `<?php echo tevkori_get_sizes( yourImageId, 'full' ); ?>`
 *  [marbaque](https://wordpress.org/support/users/marbaque/)
 * (@marbaque)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/background-image-105/#post-6355718)
 * Did you find a solution for this? I have a similar problem. I am using [fullpage.js](http://alvarotrigo.com/fullPage/)
   on my frontpage, and the plugin doesn’t work for me as the images are in the 
   background.

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

The topic ‘background-image?’ is closed to new replies.

 * ![](https://ps.w.org/ricg-responsive-images/assets/icon.svg?rev=1119324)
 * [RICG Responsive Images](https://wordpress.org/plugins/ricg-responsive-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ricg-responsive-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ricg-responsive-images/)
 * [Active Topics](https://wordpress.org/support/plugin/ricg-responsive-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ricg-responsive-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ricg-responsive-images/reviews/)

## Tags

 * ["background-image"](https://wordpress.org/support/topic-tag/background-image/)
 * [breakpoints](https://wordpress.org/support/topic-tag/breakpoints/)
 * [default](https://wordpress.org/support/topic-tag/default/)
 * [featured images](https://wordpress.org/support/topic-tag/featured-images/)
 * [media settings](https://wordpress.org/support/topic-tag/media-settings/)
 * [picturefill](https://wordpress.org/support/topic-tag/picturefill/)
 * [RICG](https://wordpress.org/support/topic-tag/ricg/)
 * [sizes](https://wordpress.org/support/topic-tag/sizes/)
 * [srcset](https://wordpress.org/support/topic-tag/srcset/)
 * [W3C](https://wordpress.org/support/topic-tag/w3c/)

 * 2 replies
 * 3 participants
 * Last reply from: [marbaque](https://wordpress.org/support/users/marbaque/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/background-image-105/#post-6355718)
 * Status: not resolved