My site's comments box still seems to appear on pages where comments are turned off, right below the "comments off" note.
See MyOnlineVentures.com
Any ideas? I cant find any reference to comments in index.php, template.php, and my template does not use a page.php file.
Cheers
richarduk
Member
Posted 1 year ago #
You might have a comments.php
In that there might be this:
<?php if ( comments_open() ) : ?>
This begins a series of if / else statements which basically say that if comments are open, show the comments textarea and all the labels etc.
I'd check first of all to see if that line of code (or similar) is there.
Finally found my page.php
Simply replacing
<?php comments_template(); ?>
with
<?php if ( comments_open() && $lw_disable_comments == "false" ) : comments_template(); endif; ?>
seemed to do the trick - although that removed comments altogether from ALL Pages - irrespective of whether they are selected to appear or not in administration.
I have found the comments.php which begins with:
<?php if ( comments_open() ) : ?>
But I am not exactly sure what i am looking for.. sorry.
Here it is in full:
[Code moderated as per the Forum Rules. Please use the pastebin]
richarduk
Member
Posted 1 year ago #
You're probably going to have to replace your original code :-)
In the meantime, paste what you have in full for comments.php in the pastebin as it's been moderated.
faithcopeland
Member
Posted 1 year ago #
hii im new to this and just used the template and editor see
http://www.faithcopelandpaintings.com
on bottom it says leave a comment
i wonter where will the comment go ? will it be visible on the site ,
why does this appear i have taken away all the checks about leaving comments under setttings, discussions
richarduk
Member
Posted 1 year ago #
@ faithcopeland
Make sure this is unticked
Allow people to post comments on new articles
This only applies to all posts written AFTER you've ticked it. For older posts, go to the post within Admin and there's a box at the bottom to tick or untick (can't remember)
faithcopeland
Member
Posted 1 year ago #
i dont do php and just used the editor and dont see any paste bin
Follow the pastebin link.
faithcopeland
Member
Posted 1 year ago #
what is the post bin link?
http://wordpress.pastebin.com/
in your case, it seems that you should check all your setting in the admin area again:
'settings' 'discussion'
and also for each post and page, below the page/post editor window - there should be a 'discussion' field.
if this does not show, you need to click 'screen options' near the top right of these pages; and tick the 'disussion' tickbox to enable the 'discussion' field below the editor.
as you are new to wordpress, i might be a good idea to get familiar with all options and settings in the dashboard/admin area.