ThemeShaper Forums » Thematic

[closed]

How to change the post footer.

(12 posts)
  • Started 9 years ago by kylehotchkiss
  • Latest reply from lewism
  • This topic is not resolved
  1. kylehotchkiss
    Member

    I want to change the post footer to display the categories and the number of comments. How could I do this?

    (and maybe display tags on the post page?)

    thanks!

    Posted 9 years ago #
  2. kylehotchkiss
    Member

    bump? Do people answer questions here?

    Posted 9 years ago #
  3. @kylehotchkiss: Probably not only after 5 hours. Imho, it seems leaving questions overnight tends to lead to more feedback.

    I'm not sure what you mean though. Are you referring to the widgets in the footer?

    Posted 9 years ago #
  4. kylehotchkiss
    Member

    The post - meta. Ya know, right after the entry (I've also seen it referred as the utility) I was just wondering how to remove the tags and edit link, and leave the categories and comments link. Thanks for any help!

    Posted 9 years ago #
  5. @kylehotchkiss: I think you'll want to look at filtering the thematic_postfooter. You can skip right to the end of this post for what I think is the solution, or you're welcome to read through my attempt at explaining why:

    A simple example of filtering the thematic_postfooter can be found at Devin's list of Useful Thematic Filters.

    add_filter('thematic_postfooter','my_postfooter');
    function my_postfooter() {
    // The Sound of One Hand Clapping
    }
    add_filter('thematic_postfooter','my_postfooter');

    However, if you're just trying to remove tags and the edit link, you can simply filter those parts out.

    As a reference, the default structure of thematic_postfooter can be found in Chris' post.

    And the specific filters (tied to thematic_postfooter) that you're probably interested in are listed on the FAQ page, including:

    thematic_postfooter_posteditlink()

    thematic_postfooter_postcategory()

    thematic_postfooter_posttags()

    thematic_postfooter_postcomments()

    thematic_postfooter_postconnect()

    thematic_postfooter()

    So if you just wanted to remove the edit link using the filter, something like this would work:

    add_filter('thematic_postfooter_posteditlink','noeditlink');
    function noeditlink() {
    //nothing
    }
    add_filter('thematic_postfooter_posteditlink','noeditlink');

    Hope this helps.

    Posted 9 years ago #
  6. Just realised I duplicated the add_filter lines above, sorry!

    function noeditlink() {
    //nothing
    }
    add_filter('thematic_postfooter_posteditlink','noeditlink');

    should suffice I believe.

    Posted 9 years ago #
  7. I want to get rid of the entire .entry-utility. Is there a way to do that?

    Posted 9 years ago #
  8. @thexander: Without testing, I'm sure you could just filter out the entire thematic_postfooter function. Maybe something like:

    function no_post_footer() {
    //nothing
    }
    add_filter('thematic_postfooter','no_post_footer');

    This is because, by default, on a single post, thematic_postfooter is set to show all of the other sub-functions (listed above) in a <div class="entry-utility"> div.

    Posted 9 years ago #
  9. kylehotchkiss
    Member

    @flick unfortunately, devins list is gone. Is there a mirror of that, so I could bookmark it!

    Posted 9 years ago #
  10. @kylehotchkiss: I think Devin has re-done his permalinks, but not yet had a chance to redirect the old links.

    This is the new Thematic filter list page: http://wordpresstheming.com/useful-thematic-filters/

    Posted 9 years ago #
  11. How would I remove the postfooter for a single post only (remains intact on index page) ?

    Posted 9 years ago #
  12. OK So I could do this with code in the functions.php or css since my weekend attempts at the code didn't work I'll do it with css and come back to the code later.

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.