Removing post details

Viewing 14 posts - 1 through 14 (of 14 total)
  • #2539
    geroido
    Participant

    Hi
    I’m trying to remove all of the info that gets displayed under each post such as:
    Comments are closed.
    Posted by geroido
    on May 26, 2011
    Filed under experience

    Can anyone help me to remove this info as I just want the post title and post text without the associated details?

    #2540
    justgeig
    Participant

    Plus 1 on this…I’ve been diving into the code but I just don’t know enough to make this happen

    #2541
    geroido
    Participant

    There is definately a way to do this but I also don’t know enough so here’s hoping someone replies soon.

    #2542
    Daniel Tara
    Keymaster

    You need to remove all elements with [code]class=”entry-meta”[/code]. Just search for them in all templates and remove them.

    #2543
    geroido
    Participant

    Hi Daniel
    I have gone through all of the Template documents and found class=”entry-meta” referred to in several docs as follows:
    content-audio.php, content-gallery.php, content-image.php, content-video.php, content.php, loop-attachment.php and loop.php.

    It is generally in the following form:
    <aside class=”entry-meta”>

    • <?php _e( ‘Posted by’, ‘minimatica’ ); ?> <?php the_author_posts_link(); ?>
    • <?php _e( ‘on’, ‘minimatica’ ); ?> <time datetime=”<?php the_time( ‘Y-m-d’ ); ?>”><?php the_time( get_option( ‘date_format’ ) ); ?></time>
    • <?php _e( ‘Filed under’, ‘minimatica’ ); ?> <?php the_category( ‘, ‘ ); ?>

    <?php the_tags( ‘<div class=”entry-tags”>’, ‘ ‘, ‘</div>’ ); ?>
    </aside><!– .entry-meta –>

    Is it this entry and all of it that I should remove from every location to prevent post details from displaying?

    Thanks for the help

    #2544
    Daniel Tara
    Keymaster

    Yes, the entire element, until the close tag.

    #2545
    geroido
    Participant

    Hi Daniel
    That worked a treat, thanks. All that stuff is gone now. However, there is still the ‘comments are closed’ statement at the bottom of each post page and I would like to remove that also. Any ideas

    #2546
    JayFiveAlive
    Participant

    To get rid of comments, I went to the comments.php and deleted everything (so it’s just blank). Now comments are no where to be found on my pages, just like I wanted it hehe.

    #2547
    Herrs24
    Participant

    How do you search using the Editor?

    #2548
    noflashlight
    Participant

    Thanks all, that worked great.

    #2549
    deboismenu
    Participant

    To get rid of the comments bit look for <?php comments_template(); ?> on the same pages.
    Delete the line or just add a php comment /* like this:

    <?php /* comments_template(); */ ?>

    #3998
    lingo123
    Participant

    Is there a way to remove only the “by admin” but keep the post date? Because I think if I follow the instructions above, I’ll end up losing it all, yes?

    #12672
    kitsch
    Participant

    Hi Daniel,
    I’m trying to delete stuff on my blog/site such as “posted on February 13…:

    I tried to delete the following code, as shown in geroldo’s post:

    (Are these all of the places I need to look for the code?) content-audio.php, content-gallery.php, content-image.php, content-video.php, content.php, loop-attachment.php and loop.php.

    And do I delete from here:

    <time datetime=””>

    <?php the_tags( ‘’, ‘ ‘, ‘’ ); ?>

    And ending here?
    I have tried this, but when I update the theme in wordpress and check the “live view” my slider is completely out of wack. I’m hoping there is a recent update that I just missed…

    Many thanks in advance!!

    #13720
    sean_themighty
    Participant

    I’m surprised no one mentioned just adding “display:none;” to the CSS classes for the post details you want to remove… Haha. It works like a charm and is way way way easier.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.