WordPress.org

Ready to get started?Download WordPress

Forums

How To Delete "Your Comments" Section (5 posts)

  1. mr.quincy27
    Member
    Posted 1 year ago #

    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!!!

  2. Sanjiv
    Member
    Posted 1 year ago #

    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 )

  3. chrisyboy
    Member
    Posted 1 year ago #

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

  4. llafleur
    Member
    Posted 1 year ago #

    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"

  5. esmi
    Forum Moderator
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic