WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hide "Leave a reply" Link on My Blog (4 posts)

  1. Imsfortune
    Member
    Posted 1 year ago #

    I'm new to wordpress,
    I'd like to hide leave a reply link in any posts
    How can I do that?

    I also want to hide tag section in post too

    My blog is http://imsdiary.com

    More information ยป http://i48.tinypic.com/24nh7k3.jpg

  2. Robert Bossaert
    Member
    Posted 1 year ago #

    You would have to dig into your theme's PHP files.
    For the WordPress Twenty Twelve theme you would have to edit content.php

    Remove or disable:

    <?php if ( comments_open() ) : ?>
    				<div class="comments-link">
    					<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
    				</div><!-- .comments-link -->
    			<?php endif; // comments_open() ?>

    and then in the entry-meta div remove or disable:
    <?php twentytwelve_entry_meta(); ?>

    Additionally depending on which sorts of posts you are using you might need to edit the other files starting with 'content' as well.

  3. fawkesblog2
    Member
    Posted 1 year ago #

    You could also look in your index.php and see if the words Leave a Reply are in there, also anything relating to the number of replies.

    The code in my index.php is as follows <?php comments_popup_link('commenti ', '1 commento ', '% commenti '); ?>

    The word comenti would be "leave a reply" in yours.

    Always make up a backup copy of your code before deleting stuff.

  4. Imsfortune
    Member
    Posted 1 year ago #

    Thankyou :)

Topic Closed

This topic has been closed to new replies.

About this Topic