Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove responsive images from feeds.
function no_responsive_image_feeds() {
add_filter( 'max_srcset_image_width', function() {
return 1;
} );
}
add_action('rss2_head', 'no_responsive_image_feeds' );
add_action('atom_head', 'no_responsive_image_feeds' );
add_action('rss_head', 'no_responsive_image_feeds' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.