ThemeShaper Forums » Thematic


Duplicate Thumbnails in excerpts

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

    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="" title="Building Projects">
    <img width="150" height="150" src="" class="attachment-thumbnail wp-post-image" alt="bedroom view" title="bedroom view" /></a></div>
    <a class="entry-thumb" href="" title="Permalink to Building Projects" >
    <div class="thumbnail"><a
    href="" title="Building Projects"><img
    width="100" height="100" src="" 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;
    Posted 10 years ago #
  3. Goran

    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.