Why Are Duplicate Images Appearing in My Blog Posts from Third-Party RSS Feeds?
Why Are Duplicate Images Appearing in My Blog Posts from Third-Party RSS Feeds?
Who Is This Article For?
- Clients using the RSS Subscription settings.
- Clients who notice two images appearing within blog posts imported from third-party feeds.
Why Does This Happen?
You may occasionally see duplicate images in blog posts added via a third-party RSS feed using the RSS Subscription settings. This typically happens because many third-party feeds do not include a featured image. To compensate, the system pulls an image from the blog description to generate a featured image.
However, if the feed already includes a featured image tag, both the featured image and the image from the description can appear in the post, resulting in duplicate images.
How Can I Fix This?
Add the following JavaScript to your Blog Category Custom Header HTML. This script automatically removes any in-article image that matches the featured image, preventing duplicates.
<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>
After adding this script, your blog posts will display only one instance of the image, ensuring a cleaner and more professional appearance.
Related Articles
How Do I Configure RSS Subscription Settings for Blog Syndication?
How Do I Configure RSS Subscription Settings for Blog Syndication? SoCast’s syndication system lets radio stations within the same broadcast group pull blog content from each other, as long as the relevant blog categories are enabled for syndication. ...
What Are the Key Benefits and Differences Between RSS Subscription, Premium Feeds, Page Cloning, and Page & Blog Syndication?
What Are the Key Benefits and Differences Between RSS Subscription, Premium Feeds, Page Cloning, and Page & Blog Syndication? This article is for: All clients Applicable to all themes This article outlines the key benefits and differences between ...
How Do I Organize Blog Categories and Contest Posts on the Homepage in SoCast Engage?
You can control how blog categories, contest posts, and RSS feed content appear on your homepage by adjusting your homepage settings. To Add or Edit Blog Categories in the Homepage Feed: Go to Website > Pages > All Pages. Search for your Homepage (or ...
What Should I Know About SoCast Premium Content Feeds?
What Should I Know About SoCast Premium Content Feeds? SoCast Premium RSS Feeds are available as an add-on and can be purchased per brand or station. For more information, please contact SoCast Support or your SoCast Sales Representative. SoCast’s ...
How Do I Add RSS Feeds And Internal Blog Categories To My Website?
How To Add An Internal RSS Feed To Your Website (Internal Blog Categories) Speak with a website or company administrator to confirm they have already allowed for syndication for their blog category, on the blog category editor page. Then, go to ...