WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to completely remove the ability to comment from pages (7 posts)

  1. Rob_Lefebvre
    Member
    Posted 2 years ago #

    I want to completely remove the ability to comment from all the pages and everything on my sebsite. How can I do this?

  2. s_ha_dum
    Member
    Posted 2 years ago #

    Turn off comments in the admin panel-- Settings->Discussion then the third checkbox down.

    If that isn't 'off' enough, then I guess you'd h ave to edit out all of the comment stuff from your theme files.

  3. Rob_Lefebvre
    Member
    Posted 2 years ago #

    I think I do have to edit everything on the theme. I tried that and it seems that there is still a comment box on every page. Any suggestions?

  4. post the name of your theme, and - if possible - a link to your site.

    as @s_ha_dum already suggested:

    you'd h ave to edit out all of the comment stuff from your theme files.

    where that all is dependfs on your theme.

    general codes to look for (probably with some parameters in the brackets):

    comments_popup_link()
    comments_template()
    comments_number()
  5. s_ha_dum
    Member
    Posted 2 years ago #

    If your theme isn't switching the comment boxes off when you disable comments you are going to have to dig through the theme to find them in the theme PHP and get rid of them-- a bit tedious but shouldn't be too hard.

  6. Rob_Lefebvre
    Member
    Posted 2 years ago #

    The theme name is Hero by theme trust. The website link is http://www.throwthediceproductions.com

  7. Rob_Lefebvre
    Member
    Posted 2 years ago #

    Hey, Thanks for all the help everyone. Basically I just deleted all of the info in the comments.php and it is now gone. If anyone is using this for reference on how to fix the same problem as me, I would reccomend saving all of the code into a notepad doc, so if you want it back you can copy paste. There is also probably an easier way, but it worked good enough for me.

Topic Closed

This topic has been closed to new replies.

About this Topic