ThemeShaper Forums » Thematic

[closed]

how to get rid of entry-utility?

(2 posts)
  • Started 13 years ago by arveerella
  • Latest reply from arturkim
  • This topic is resolved
  1. arveerella
    Member

    i'm trying to get rid of entry-utlity... i wanted to place my categories in entry-meta and remove the author-vcard... how do i do that?

    Posted 13 years ago #
  2. The following code should do what you want. First, I removed postfooter which is where entry-utility is in. Then, I modified postheader_postmeta to display categories instead of author.

    /* Remove postfooter */
    function remove_postfooter() {
    	/* bye postfooter */
    }
    add_filter('thematic_postfooter', 'remove_postfooter');
    
    /* Modify postheader_postmeta */
    function childtheme_postheader_postmeta() {
    
    	$postmeta = '<div class="entry-meta">';
    	$postmeta .= '<span class="cat-links">';
    	if (is_single()) {
    		$postmeta .= __('This entry was posted in ', 'thematic') . get_the_category_list(', ');
    		$postmeta .= '</span>';
    	} elseif ( is_category() && $cats_meow = thematic_cats_meow(', ') ) { /* Returns categories other than the one queried */
    		$postmeta .= __('Also posted in ', 'thematic') . $cats_meow;
    		$postmeta .= '</span> <span class="meta-sep meta-sep-tag-links">|</span>';
    	} else {
    		$postmeta .= __('Posted in ', 'thematic') . get_the_category_list(', ');
    		$postmeta .= '</span> <span class="meta-sep meta-sep-entry-date">| </span>';
    	}
    	$postmeta .= thematic_postmeta_entrydate();
    	$postmeta .= thematic_postmeta_editlink();
    
    	$postmeta .= "</div><!-- .entry-meta -->\n";
    
    	return apply_filters('childtheme_postheader_postmeta',$postmeta); 
    
    }
    add_filter('thematic_postheader_postmeta', 'childtheme_postheader_postmeta');

    Artur Kim

    Posted 13 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.