Forums

Comments box still appears despite comments being off / "comments off" (10 posts)

  1. myov
    Member
    Posted 1 year ago #

    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

  2. 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.

  3. myov
    Member
    Posted 1 year ago #

    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]

  4. 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.

  5. 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

  6. 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)

  7. faithcopeland
    Member
    Posted 1 year ago #

    i dont do php and just used the editor and dont see any paste bin

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Follow the pastebin link.

  9. faithcopeland
    Member
    Posted 1 year ago #

    what is the post bin link?

  10. alchymyth
    The Sweeper
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.