1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WP Theme Question

Discussion in 'Blogging' started by Randy569, Apr 23, 2011.

  1. Randy569

    Randy569 Junior Member

    Joined:
    Feb 3, 2009
    Messages:
    175
    Likes Received:
    378
    Location:
    Missouri, USA
    Does anyone have any idea on how to get rid of the comment box on a WP theme?

    I don't want to just disable the comments, I want to ditch the comment box completely. I want no comment capability on the page whatsoever.

    I know you have to modify the CSS folder, and I managed to get rid of it on the home page, but it still appears on all the subsequent pages.

    I searched Google, and all the suggestions available were obsolete.

    Any ideas?

    (If it helps, I'm using the Heatmap theme.)
     
  2. panoet

    panoet Regular Member

    Joined:
    Jun 26, 2010
    Messages:
    243
    Likes Received:
    56
    Maybe I can help you. I have HeatMap theme too.

    You can hide comments on HeatMap Options menu - Post section
     
    • Thanks Thanks x 1
    Last edited: Apr 23, 2011
  3. vishalgmistry

    vishalgmistry Regular Member

    Joined:
    Sep 25, 2008
    Messages:
    321
    Likes Received:
    520
    PM me your IM.
    msn yahoo.
     
  4. badut jenaka

    badut jenaka Regular Member

    Joined:
    Apr 11, 2010
    Messages:
    271
    Likes Received:
    68
    Gender:
    Male
    Location:
    In The Middle of Nowhere
    Home Page:
    Just find this code on your single.php file

    <?php comments_template(); ?>

    remove it..or simply add <!-- code -->
     
    • Thanks Thanks x 1
  5. panoet

    panoet Regular Member

    Joined:
    Jun 26, 2010
    Messages:
    243
    Likes Received:
    56
    Not that easy if you want to remove comment count too :)
     
  6. quadratic

    quadratic Registered Member

    Joined:
    Oct 26, 2009
    Messages:
    69
    Likes Received:
    46
    I don't have the heatmap theme so I cannot look specifically .. but in most WP themes the comments scripting and layout resides in the functions.php file in the theme directory.

    So as stated above the single.php file has the code <?php comments_template(); ?> which calls this function and the main code is in functions.php
     
    • Thanks Thanks x 1
  7. Randy569

    Randy569 Junior Member

    Joined:
    Feb 3, 2009
    Messages:
    175
    Likes Received:
    378
    Location:
    Missouri, USA
    I really appreciate the responses. Thanks given.


    Tried that. It still leaves the comment box. I also managed to get those files you sent, they didn't work, the box is still there.

    Tried that before I posted the thread. That killed the box on the home page, but the box is still there on the subsequent pages.


    Maybe this can't be done. :(
     
  8. philipthechilip

    philipthechilip Junior Member

    Joined:
    Nov 23, 2011
    Messages:
    122
    Likes Received:
    29
    Occupation:
    poker player
    Location:
    Wimbledon, London
    For anyone still wishing to know if this can be done, you can permanently remove comments simply by deleting all the text from the comments.php file.

    Obviously make a backup of the file just in case you want to add the comments back at a later date.