Created
December 3, 2015 04:00
-
-
Save joemcgill/0285c490a68273804c0b to your computer and use it in GitHub Desktop.
Remove responsive images from feeds.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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