Viewing 10 replies - 1 through 10 (of 10 total)
  • make sure to have/make a backup copy of your theme.

    as a start, look through all the theme template files, and look for comments_popup_link() and comments_template() and remove the code inclusive the corresponding surrounding html tags.

    details depend on your theme.

    and disable comments in ‘settings’ ‘discussion’,
    and for the individual posts and pages.

    http://codex.wordpress.org/Function_Reference/comments_popup_link
    http://codex.wordpress.org/Function_Reference/comments_template

    Thread Starter rghartford

    (@rghartford)

    To be more clear. Can you remove the comments section from a template?

    which template?

    look for ‘comments_template()’ within the template file;

    to identify the used template, have a look at http://codex.wordpress.org/Template_Hierarchy

    Thread Starter rghartford

    (@rghartford)

    Thank you. I am a novice so please bear with me.
    I have installed the theme “Motion”by Volcanic. I just wiped out everything and had to call my host to redo everything.
    They tried to help me get rid of the comment section but could not help me. Can you help with some instructions more specific to this theme? I finally figured out how to get to the code through the editor but am now scared to try anything.
    Thank you.

    it is really quite straight forward:

    this is the code section with ‘comments_popup_link()’:

    &mdash; <?php comments_popup_link( __( 'Leave a comment', 'motion_theme' ), __( '1 Comment', 'motion_theme' ), __( '% Comments', 'motion_theme' ) ) ?>

    it is exactly the same in a few template files – remove this from:
    – archive.php
    – home.php
    – index.php
    – image.php

    this is the code section with ‘comments_template()’:

    <div id="comments">
    <?php comments_template( '', true ); ?>
    </div><!-- /comments -->

    it is exactly the same in a few template files – remove this from:
    – page.php
    – page-with-sidebar.php
    – single.php

    this should remove any trace of comments from your theme.

    as this is a free downloadable theme, you can’t really make any un-repairable mistake.
    i suggest that you download and safe-keep a copy on your local computer.

    Thread Starter rghartford

    (@rghartford)

    I think I did it. I deleted the whole code on the comments page and a line on the page section and it appears to be gone so we can close this for now.

    Thread Starter rghartford

    (@rghartford)

    Oh i didn’t get your post until just now. I will look it over as I am sure it will be useful.
    Thank you

    way better if you did it your self – there was not too much to go wrong anyway 😉

    Thread Starter rghartford

    (@rghartford)

    That’s so nice of you to say.
    I do have one more question for now.
    I want this to be my web page not a blog. http://www.Mytherpaistdc.com
    There are so many things I don’n want showing. Should I find a more suitable Theme since I don’t really know what I’m doing? I did my original by myself http://www.roberthartford.com and I want it basically the same but I needed to find a better host that supported more script for SEO since I couldn’t even upload a facebook link. i think it only supported java and nothing else. Any input would be appreciated.
    Robert

    Thread Starter rghartford

    (@rghartford)

    just checking

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘remove comments’ is closed to new replies.