This Article Is For:
|
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> |