How to I remove "leave a comment"
I don't want any references to comments displayed on any pages.
So far I removed the comments template code from index.php in the template
Please advise
How to I remove "leave a comment"
I don't want any references to comments displayed on any pages.
So far I removed the comments template code from index.php in the template
Please advise
If you do not want to use the commenting feature at all... you can remove the code "<?php comments_template(); ?>" from the single.php file of your theme.
Also disable comments on the Discussion page under Settings, simply removing the code isn't 100% fool-proof.
Thanks wp_guy but I don't have a single.php file in my template
I have..
archives
comments
footer
functions
header
home
index
l_sidebar
r_sidebar
page
search
style
404
images folder
What other file do I need to edit?
haochi - disabling comments in the admin panel is what I did first.
If you don't have a single.php... then index.php is used instead... do you see a "<?php comments_template(); ?>" in your index.php file?
Thanks...I mentioned that I had already done this in my original post.
The template is gone but I still have "leave a comment" at the bottom of my posts.
See here: selfhelpguide.net
How do I get rid of this link?
Is it just the "leave a comment" text? no comments form?
Look for this in index.php,
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
or something VERY similar. Thats what you are looking to delete.
If you cant locate it, provide a link to where your current theme can be downloaded. Please not a "here is an almost link", but the actual page.
Yes, it's just the "leave a comment" text
The comments template has been deleted.
whooami...I couldn't locate it in index.php
Actual page....
selfhelpguide.net
Download link for template
http://www.briangardner.com/themes/downtown-java-wordpress-theme.htm
Thank you
Actually the code that whooami mentioned is found in archive.php for that theme.
Thanks
I removed it from this code in archives.php but "leave a comment" still remains on in the post on the home page.
<div class="postmeta">
<p><?php the_time('F j, Y'); ?> | Filed Under <?php the_category(', ') ?> | <?php edit_post_link('(Edit)', '', ''); ?></p>
</div>
Please advise
Maybe it's home.php ...
home.php
<div class="postmeta">
<?php the_time('F j, Y'); ?> | Filed Under <?php the_category(', ') ?> | <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?>
</div>
I told you what to look for, you have to take a little initiative and look through the other files... :<
Worked!
Thanks very much for your patience.
I wish you well.
This topic has been closed to new replies.