Eliminate Comment Option
-
I need to remove the “Leave a Reply” text also.
Thanks
Look for this code in your main index template
<?php comments_popup_link('', '', ''); ?>Whatever is between the ”s is irrelevant. Just delete this piece of code making sure to delete from the <? to the ?>Commented out the line of code but still have text for comments:
http://www.murphtor.com/wordpress/?page_id=7
Also want to remove the “Leave a Reply” option
http://www.murphtor.com/wordpress/?page_id=5
Thanks
So, that’s a Page as in Pages.
To learn which template file is used to display your Pages – read: Template_Hierarchy.Well I managed to remove them by commenting out the actual text that appears on the page from “comments.php”. Not a very elegant solution though. I am looking at the template pages now and it looks like it should be reading pages.php since I didn’t pick any other than the default for the template on the page. pages.php has only one seemingly relevant line ” <?php comments_template(); ?>” but I’m not sure that’s the one to change.
Yes that is the line you need to remove. That calls the comment form.
Yes, delete it.
edit: dang, you beat me.
Success – Thanks
Can someone suggest how to remove comments option from one page not all pages? I would like remove comments from “photos” page
http://www.re-lee.com
The topic ‘Eliminate Comment Option’ is closed to new replies.
(@dckantor)
18 years, 5 months ago
I am setting up a site with no commenting options. Can I remove the line that says “Comments are closed” or words like that. I just want nothing relating to comments at all. Using Hi-Tech theme.
Thanks