WordPress.org

Support

Support » Themes and Templates » How To Delete "Your Comments" Section

How To Delete "Your Comments" Section

  • mr.quincy27
    Member

    @mrquincy27

    Hi!

    Just wondering if there is a way to turn off or delete the “leave a comment section”?

    My theme is Simple Catch

    Any help would be great!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sanjip Shah
    Member

    @sanjiv-saha

    Hi! mr.quincy27

    Right now there is no such options to turn the comment section.
    We will consider it, in the future versions of simple-catch.

    But for now if you really want to turn off comments section. You will have to remove some code from the php files.
    First find these three files content-sidebar-right.php, content-sidebar-no.php and content-sidebar-left.php. And remove the following bit of code.

    <?php comments_template(); ?>

    This will remove the comment section. But you may now also want to remove the comments links( i.e No comment, 2 comments type of part ). So, again find this file simplecatch_functions.php and content.php files. Go to line around 810 in the simplecatch_functions.php file and line 28 in the content.php file. Find the following code and remove it.

    <li><?php comments_popup_link( __( 'No Comments', 'simplecatch' ), __( '1 Comment', 'simplecatch' ), __( '% Comments', 'simplecatch' ) ); ?></li>
    I hope you can make these changes and this should do. But remember these changes will be lost when you will update your theme to newer versions.

    Regards.
    Sanjiv( Catch Themes )

    chrisyboy
    Member

    @chrisyboy

    thought this section was for struttung your website and not solving wp issues???

    llafleur
    Member

    @llafleur

    I need to remove the “No Comments” and I looked in the simplecatch_functions.php as instructed above. I do not have the code you reference. I also do not have a content.php file at all. There are several posts elsewhere that reference editing the Index.php page, but I do not have one of those either. Please help. This is a business blog and we don’t allow comments, but it looks terrible that there are “no comments”

    esmi
    Forum Moderator

    @esmi

    Please post your own topic with a link to a page demonstrating the problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How To Delete "Your Comments" Section’ is closed to new replies.