Forums

Thematic theme: get rid of postmeta and postfooter on home page only (3 posts)

  1. erikvlie
    Member
    Posted 2 years ago #

    Hi there, I have asked this over at Thematic, but nobody seems to be available for help. I am a lousy programmer/scripter, but I excel at copy/paste code :-).

    What I want is to get rid of the postmeta and postfooter stuff on the home page, but leave it intact on single post pages. What I did was the below and it's not working, and I can't figure out why not:

    function no_thematic_postfooter() {
      if (is_single()) {
        global $id, $post;
    
        if ($post->post_type == 'page' && current_user_can('edit_posts')) { /* For logged-in "page" search results */
            $postfooter = '<div class="entry-utility">' . thematic_postfooter_posteditlink();
            $postfooter .= "</div><!-- .entry-utility -->\n";
        } elseif ($post->post_type == 'page') { /* For logged-out "page" search results */
            $postfooter = '';
        } else {
            if (is_single()) {
                $postfooter = '<div class="entry-utility">' . thematic_postfooter_postcategory() . thematic_postfooter_posttags() . thematic_postfooter_postconnect();
            } else {
                $postfooter = '<div class="entry-utility">' . thematic_postfooter_postcategory() . thematic_postfooter_posttags() . thematic_postfooter_postcomments();
            }
            $postfooter .= "</div><!-- .entry-utility -->\n";
        }
        // Put it on the screen
        echo apply_filters( 'thematic_postfooter', $postfooter ); // Filter to override default post footer
        }
        else {
        return ('');
        }
    }
    add_filter('thematic_postfooter', 'no_thematic_postfooter');
     // end thematic_postfooter
  2. erikvlie
    Member
    Posted 2 years ago #

    Anyone? Can anyone please help with this?

  3. dot_matrix
    Member
    Posted 2 years ago #

    i'm no coder either, i would use css

    body.home .entry-utility {display:none}
    body.home .entry-meta {display:none}

Topic Closed

This topic has been closed to new replies.

About this Topic