Why Are There Duplicate Images Appearing In My Blog Posts From 3rd Party RSS Feeds?
This Article Is For:
Clients using the RSS Subscription Settings
Clients who see 2 images within blog posts that are pulled from 3rd party feeds.
You may on occasion have duplicate images appear in blogs posts that been added as a 3rd party feed via the RSS Subscription system. This is because most 3rd party feeds do not provide a featured image, so we have to pull the image from the blog description in order to generate one.
However if there is already a featured image tag set by the feed, then 2 images may appear within the post.
If this issue occurs for you, please use this javascript, and it to the Blog Category Custom Header HTML.
<script>
$(document).ready( function() {
let featuredImg = $('.content-header .media-container img').attr('src');
$('article img').each(function(){
if ($(this).attr('src') == featuredImg) {
$(this).remove();
}
});
});
</script>