ThemeShaper Forums » Thematic

[closed]

Excerpts in 0.9.7.8

(4 posts)
  • Started 7 years ago by helgatheviking
  • Latest reply from em hr
  • This topic is resolved

Tags:

  1. I thought i had excerpts all sorted out, but with the updates I am not so sure.

    how do i remove the thumbnail from the beginning of the excerpt. you can see it being put there in thematic_content. I've tried filtering thematic_content, but to no avail. I'd rather not override the entire function as it seems like overkill.

    i would just like the excerpts to be text-only. this seemed logical, but did not work.

    function childtheme_excerpt($post){
    	global $thematic_content_length;
    
    		if ( strtolower($thematic_content_length) == 'excerpt') {
    			$post = '';
    			$post .= get_the_excerpt();
    			$post = apply_filters('the_excerpt',$post);
    
    		}
    	return $post;
    }
    add_filter('thematic_content','childtheme_excerpt');

    i dont want to kill thumbnails, i just need to move them to another place.... which i can do, but obviously it looks dumb if i show the same thumb 2x.

    Posted 7 years ago #
  2. for now i have solved this with:

    //remove thematic default thumbnails
    function no_thumbs(){
    	return FALSE;
    }
    add_filter('thematic_post_thumbs','no_thumbs');
    
    //re-enable thumbnail support
    add_theme_support( 'post-thumbnails' );
    Posted 7 years ago #
  3. i've been having problems with thumbs.
    i've resorted to using the above code to start from sratch

    Posted 7 years ago #
  4. Yes, this is the correct approach.

    //remove thematic default thumbnails
    function no_thumbs(){
    	return FALSE;
    }
    add_filter('thematic_post_thumbs','no_thumbs');
    
    //re-enable thumbnail support
    add_theme_support( 'post-thumbnails' );
    Posted 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.