ThemeShaper Forums » Thematic

[closed]

Duplicate Thumbnails in excerpts

(3 posts)
  • Started 10 years ago by elderberry
  • Latest reply from Goran
  • This topic is not resolved
  1. elderberry
    Member

    I made a number of changes to a site I'm working on and don't know whether an update or other change I made caused this result. Any suggestions? On the category page each excerpt now contains 2 thumbnails like this:

    <div class="entry-content"><div class="thumbnail">
    <a href="http://example.com/barn-remodeling" title="Building Projects">
    <img width="150" height="150" src="http://example.com/wp-content/uploads/2011/01/bedroom-view-150x150.jpg" class="attachment-thumbnail wp-post-image" alt="bedroom view" title="bedroom view" /></a></div>
    
    <a class="entry-thumb" href="http://example.com/news/barn-remodeling" title="Permalink to Building Projects" >
    <div class="thumbnail"><a
    href="http://example.com/news/barn-remodeling" title="Building Projects"><img
    width="100" height="100" src="http://example.com/wp-content/uploads/2011/01/bedroom-view-150x150.jpg" class="attachment-100x100 wp-post-image" alt="bedroom view" title="Permalink to Building Projects" /></a></div></a>
    Posted 10 years ago #
  2. thematic puts in thumbnails in the excerpts by default unless you turn them off w/ a filter. you can see it all at work in the thematic_content() function in content-extensions.php

    to turn off thematic's auto-inserts i believe you'd

    function thumbs_off()
      return FALSE;
    }
    add_filter('thematic_post_thumbs','thumbs_off');
    Posted 10 years ago #
  3. Goran
    Member

    That will work. You can also just write


    add_filter('thematic_post_thumbs', function() {return false;});

    Frankly, I'm not sure why it's in by default. I simply always disable it.

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.