Title: Image SRC Set (different images)
Last modified: January 28, 2022

---

# Image SRC Set (different images)

 *  [danielwerner23](https://wordpress.org/support/users/danielwerner23/)
 * (@danielwerner23)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/image-src-set-different-images/)
 * Hi there,
 * currently i use images with the default image block. This block generates me 
   a bunch of files in the upload folder, that i dont need. I only need a single
   file. But thats not the problem. Later i will try to disable this in my functions.
   php
 * If i use the function the_content() in my theme, i get the image-tag with the
   srcset of the generated files. My problem is, i have to use different images.
   One for “desktop” view, one for “mobile” view (there are other cutouts in the
   mobile image). How can i solve this problem? Do i need to code a plugin? Or there
   are free plugins on the market?
 * Thanks,
    Daniel
    -  This topic was modified 4 years, 3 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic

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

 *  [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/image-src-set-different-images/#post-15302567)
 * What’s the problem?
    You want to be able to deliver different sized images for
   different breakpoints based on device?
 * srcset was intended to manage this for you without a plugin:
    [https://novo-media.ch/en/web-optimization/responsive-images-wordpress/](https://novo-media.ch/en/web-optimization/responsive-images-wordpress/)
   If you would prefer, there are actions you can add to your theme: [https://uploadcare.com/blog/responsive-images-wordpress/](https://uploadcare.com/blog/responsive-images-wordpress/)
 *  Thread Starter [danielwerner23](https://wordpress.org/support/users/danielwerner23/)
 * (@danielwerner23)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/image-src-set-different-images/#post-15303528)
 * The problem is, i have to use **two different images** from the wordpress media
   library. The wordpress image block can only support one image. The result in 
   the frontend with “the_content()” is one image-tag with an srcset, but its from
   one image (the image i’ve choosen in the wp block), but i need an wp image block
   with two different images.
    -  This reply was modified 4 years, 3 months ago by [danielwerner23](https://wordpress.org/support/users/danielwerner23/).
    -  This reply was modified 4 years, 3 months ago by [danielwerner23](https://wordpress.org/support/users/danielwerner23/).

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

The topic ‘Image SRC Set (different images)’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [danielwerner23](https://wordpress.org/support/users/danielwerner23/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/image-src-set-different-images/#post-15303528)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
