Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6921

    Hi,

    How do I remove the Author and Post Reply sections at the for of the post page?

    My site has no need for them.

    TIA

    Ritchie

    #55913

    Hey,

    in single.php delete following code:

    <div class='entry' id="author-box">
    <div class="gravatar">
    <?php
    $author_email = get_the_author_email();
    echo get_avatar( $author_email, $size = '60');
    the_author_posts_link();
    ?>
    </div>
    <div class="author-info">
    <h3><?php _e('About the author','newscast'); ?></h3>
    <?php
    $description = get_the_author_description();
    if($description != '')
    {
    echo $description;
    }
    else
    {
    _e('The author didnt add any Information to his profile yet','newscast');
    }

    ?>
    </div>
    </div>

    and:

    <div class='entry commententry'>
    <?php comments_template(); ?>
    </div>

    #55914

    Many thanks.

    That has successfully removed the Author box.

    However, the ‘Leave a Reply’ box is still there. It doesn’t appear to be in single.php

    Can you advise?

    TIA

    Ritch

    #55915

    Are you certain you’ve removed

    <div class='entry commententry'>
    <?php comments_template(); ?>
    </div>

    from the single.php? Have you cleared your cache?

    It is generated in your comments.php at this line:

    <?php comment_form_title( '<h3>'.__('Leave a Reply','newscast').'</h3>', '<h3>'.__('Leave a Reply to %s','newscast').'</h3>'); ?>

    ^You can try and remove that if the previous doesn’t work..

    #55916

    OOOPS!!! Sorry about that.

    It has indeed been removed.

    Many thanks Dude and Chris for your time and advice.

    Cheers,

    Ritch

    #55917

    Glad that we could help you :)

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

The topic ‘Removing Author and Post Reply from posts’ is closed to new replies.