This is mostly off-topic, but your assumption that srcset
is somehow related to going desktop => mobile is just false. the srcset
attribute notifies the browser about alternative images and sizes and it is the browser that selects which image to use based on whatever criteria it wants. Therefor there is most likely nothing wrong with your code if it outputs the srcset
attribute and you see a non optimal fit of the image because the browser decided it is the best thing to do, for example if it has already an image in its cache it might prefer not to load a new one. Since the srcset
attribute is designed to leave control in the hands of the browsers, there is not much you can do about on wordpress side.
Related Posts:
- the_post_thumbnail responsive srcset not populating with custom image size
- the_post_thumbnail scaling not hard cropping
- Implementing Zurb’s Interchange Into WordPress
- wordpress responsive image srcset not working
- adaptive featured images wordpress 4.4 grid
- Set Post Thumbnails in Percents
- Responsive scaling of image for the_post_thumbnail() [closed]
- Add Image Size for Featured Image with Responsive Design
- How to select which thumbnails sizes are displayed in srcset
- WordPress 4.4 responsive sometimes doesn’t work
- Define width of featured image thumbnails, but also make responsive?
- My theme header is stuck on a low resolution image?
- Show a page of non-standard-sized featured images
- Change get_post_thumb responsively?
- Change featured thumbnail based on screen size
- How do you remove hard coded thumbnail image dimensions?
- How do you get the post thumbnail size?
- Setting a post’s featured image from an embedded YouTube video
- Minimum Dimensions Requirement for Featured Image?
- Display thumbnail only if requested size exists
- the_post_thumbnail hard cropping not working no matter what
- the_post_thumbnail with lazyload JQ plugin
- Display Post Thumbnail Without Being Featured Image
- Featured Image of Video from oembed
- Multiple featured image thumbnails for post types (Multiple Post Thumbnails plugin)
- Set post-thumbnail (with php)?
- get_thumbnail_id returns full size image
- can the_excerpt function also get images?
- Change Output for Images in Content
- Add post title as alt tag for featured image
- How to scale up image into thumbnail without distorting it?
- Using Gutenberg block components in admin interface controls
- previous / next post with thumbnail
- Multiple Post Thumbnails plugin and attachment error
- WordPress resizes image to the same size as uploaded
- Possible to swap in a placeholder image globally for the_post_thumbnail_url if one doesn’t exist?
- How to set an attachments parent post id in code?
- How to use wp_get_attachment_metadata for thumbnails
- Use wp_remote_get to add image to media library
- Can a thumbnail of an animated gif be animated?
- Is it possible to get local image URL when also having photon active?
- Featured Image Size Conditional Tag?
- How can I call a thumbnail/featured image to be a background image?
- create new post using rest API and set featured Image from an external link
- Replicate featured image functionality
- Woocommerce – remove the default image placeholder? [closed]
- Remove link from post images
- Call Featured Image from Parent Page
- Allow author to choose his featured image size
- How to get cropped thumbnail source for custom post type
- Using thumbnail functions inside a shortcode
- Featured image for first post only
- Featured Image Not Working when loaded from sub-domain
- get_the_post_thumbnail ignores my default thumbnail size [closed]
- Remove the link to a featured image if and only if it’s not a gif
- How to query posts with featured images
- hrecipe microformat tag to “featured image”
- Server B handling add_image_size() differently than Server A
- the_title() is not displaying over the_thumbnail
- Custom responsive ‘featured image’ sizes
- Show posts image attachments
- Choose to Display Post Thumbnail?
- How do I make images appear in the beside blog post summaries?
- Featured Image meta box shows at the bottom?
- How to get featured image thumbnail to open larger version in attachment page?
- How To Use YouTube Url Stored In Custom Field To Get Video Image and Set it As Featured Image
- Display post thumbnail in foreach loop
- Add title to image post
- How to attach images that I “insert from url” into the post?
- If no featured image, add one of the default images into DB
- the_post_thumbnail(‘medium’) still gives thumbnail-size img
- My Gallery Photos are showing in the post’s excerpts
- the_post_thumbnail not resizing
- How to add featured images to posts from a category
- How do you code a featured image into an XML as a jpg link, instead of using a data-id number?
- Change featured image when changing viewport
- WordPress 5: including larger thumbnail image sizes in srcset than I have set
- Thumbnails regenerate wp_generate_attachment_metadata
- Using the_post_thumbnail do not rollback to original image if specified thumbnail does not exist
- Get author image from corresponding article in thumbnail
- Missing image size
- water mark on featured post image in wordpress
- Making a ‘featured image’ become the image for a full banner (top of page) image in a blog post?
- How to change text of Remove featured image
- Add space under featured image in singel post
- Genereate widescreen featured images in different sizes
- set_post_thumbnail() shows Unattached on backend under Media
- How to get the URL of a each custom image size of a featured image
- Recent posts show thumbnail
- Add Featured Image from Existing wp-content folder
- Featured Images missing on migrated site
- Pointing Existing featured images to s3 bucket
- Displaying All Parent Pages as Featured Images
- Featured Images not appearing
- Editing featured image
- WordPress save thumbnail but don’t show it [closed]
- Display featured image as post thumbnail
- Change background image in PHP
- Display featured image metadata?
- Strange image artifact on font-page thumbnail image