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?
ThemeShaper Forums » Thematic
[closed]
how to get rid of entry-utility?
(2 posts)-
Posted 13 years ago #
-
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 #
Topic Closed
This topic has been closed to new replies.