Post image for Thesis Customization, Fixing Duplicate Image Issue In RSS Feed

Thesis Customization, Fixing Duplicate Image Issue In RSS Feed

by Bobby Jay

duplicate_imageIf someone asks from me or give me the choice to select one theme among a list of premium themes I will select Thesis Theme as my only premium theme. Reasons I already discussed in my Thesis 1.7 review. Among other interesting features offered by Thesis, we have an option to show our posts in Teasers and Features. Without images and pictures in posts, articles don’t seem interesting and readers loose interest in the blog due to lack of graphics. So, let’s add images to our posts, but how to show them in teasers. Very simple, we already have demonstrated the procedure in our article.

In our article of adding image to teaser, we have addressed two issues;

  • Automatically resizing of image according to thumbnail size,
  • Showing same image twice in the post,

If you take benefit from Thesis image resizing feature of image then you have second problem as I listed. Same image is shown two times in your articles. We have also solved that problem is that article.

But again, here is problem of showing same image two times in…. guess in what. Yes your RSS feed shows same image two times. We have received a request to address this issue. Though we have showed the code to remove duplicate image in our earlier article, but again in this article we are giving the code to remove the duplicate image from your article as well as from RSS feed. So let’s have the code to address the both of issues;

Adding this code to custom.css file of thesis theme will remove the duplicate image issue in the posts,

/*Remove duplicate image from article*/

.post_image { display:none !important; }

While this piece of code needs to be added to custom_function.php file resulting in removing duplicate image in RSS field.

/*Remove duplicate image from RSS feed*/

remove_filter('the_content', 'thesis_add_image_to_feed');

By adding these codes to their respective files, you have flexibility of showing your thumbnails in any size without cropping them.

Have fun and please Digg, tweet and stumble my article.

Related posts:
  1. Thesis 1.7 Premium WordPress Theme Review and SEO Features
  2. Thesis Customisation to Show Thumbnail in Teaser
  3. BloggingJunkie Redesigned using Thesis Framework
  4. CommentLuv is Showing its Heart Icon in Thesis 1.7
  5. Add Thumbnails to Popular Posts

{ 10 comments… read them below or add one }

Ahmad Wali July 13, 2010 at 9:07 pm

I was looking for the solution to this problem. Good to see fellow countrymen doing a great job. You have a nice blog, Thanks.

Regards

Reply

Imran Yousaf July 14, 2010 at 1:35 am

Thanks Ahmed.

Reply

Ahmad Wali July 13, 2010 at 9:17 pm

It seems like .post_image { display:none !important; } this has already in custom.css file. Although I have added the other code in customs_functions.php, but still it is showing 2 images in Feed burner!

Reply

Imran Yousaf July 13, 2010 at 11:40 pm

Ahmed you need to refresh your feedburner. Two options are available. Either publish new post or ping the feedburner account. Pinging option is available under troubleshoot menu of your feedburner account.

Reply

Maaike Quinn December 20, 2010 at 2:27 am

Thanks! I thought I had it all covered with the CSS part and I got scared when I saw my feed. Double images everywhere!! And I was not able to find the solution. I thought I went mad. But then there were you :)

Reply

Biaksh January 20, 2011 at 10:49 am

A problem When I use the code it removes the double images in the post but also removes the thumbnail from the teaser/feature posts at the home page.

Reply

Imran Yousaf January 25, 2011 at 2:57 pm
anuj@webtricksblog March 7, 2011 at 6:59 pm

hey thanks it helps me in Fixing Duplicate Image Issue In RSS Feed :)

Reply

Raj July 23, 2011 at 12:15 am

the code didn’t worked for me.. could you suggest me about the alternatives pls…

Reply

Imran Yousaf July 31, 2011 at 9:58 pm

Please make sure you have applied that code in correct file.

Reply

Leave a Comment


8 × = thirty two

CommentLuv badge

Previous post:

Next post: