WordPress.org

Ready to get started?Download WordPress

Forums

Desperatly trying to remove comments from post (22 posts)

  1. ferozkn
    Member
    Posted 6 years ago #

    Everytime i make a post, the following appears at the bottom of my posts. Can someone help me where i can i find this code and remove them entirely . I am desperate , appreciate some help . You can see it in http://www.recruit20.com posts

    ---------------------

    <div class="postmeta">
    <p>Tags: </p>
    </div>

    <h3>Comments</h3>

    <!-- You can start editing here. -->

    <div id="commentblock">

    <!-- If comments are closed. -->
    <p class="nocomments">Comments are closed.</p></div>

    </div>

  2. Roy
    Member
    Posted 6 years ago #

    index.php would be my guesss, or do you mean under the single post? Then it's in single.php. Maybe you also want to have a look at the comments.php of your theme.

    It sounds to me like a part of the code is forgotten and that's why the browser sees this as text.

  3. ferozkn
    Member
    Posted 6 years ago #

    i dont see a single.php in my theme folder.
    Do i remove the comments.php entirely from this folder ?

  4. Roy
    Member
    Posted 6 years ago #

    Your site doesn't load...

    1) If you don't have a single.php, then the template to display single posts will have another name. I'm sure you can display one post on the blog and you're not forced to have a page with 10 (or so) posts.
    2) If you don't want to use the comments, but your problem is (probably) not there, but in the single.php (or whatever it is called in your theme). What I meant is, you could check the comments.php to see if the code you see is in there (but I expect not).

  5. ferozkn
    Member
    Posted 6 years ago #

    its http://www.recruit20.com , it works alright, try again please

  6. Roy
    Member
    Posted 6 years ago #

    Still nothing ("network access error"). But just have a look at my previous answers.

  7. moshu
    Member
    Posted 6 years ago #

    Removing the comments.php file will not help.

    Delete (or comment out) lines #37-38 in your index.php file:

    <h3>Comments</h3>
    		<?php comments_template(); // Get wp-comments.php template ?>

    and this bit from line #12 in the home.php file:
    <?php comments_popup_link('Comment', '1 Comment', '% Comments'); ?>

  8. ferozkn
    Member
    Posted 6 years ago #

    this is gone

    <h3>Comments</h3>
    <?php comments_template(); // Get wp-comments.php template ?>

    but it still appears in new posts

    I am so desperate , pls help

  9. Roy
    Member
    Posted 6 years ago #

    I don't see it. Browser cache? (And yes, your site came back to life.)

  10. ferozkn
    Member
    Posted 6 years ago #

    I took this out as well

    <?php comments_popup_link('Comment', '1 Comment', '% Comments'); ?>

    its just not working

  11. Roy
    Member
    Posted 6 years ago #

    [edited] It's not just the index.php (in which you still have to get rid off the "Comments Off"), but the single post php (of which I don't know the name in your theme) in which you have to delete comments arguments.

    And remember, clear browser cache when you have another look.

  12. ferozkn
    Member
    Posted 6 years ago #

    Now i have also remove the entire comments.php file as well. It sill does not work

  13. moshu
    Member
    Posted 6 years ago #

    Then you are doing something wrong.
    It should work if you followed my instructions above: I gave you the exact lines to be deleted/commented out.

    How do you edit the files? You should do it on your own computer in a plain text editor and upload via ftp the modified files.

  14. ferozkn
    Member
    Posted 6 years ago #

    i did exactly as you told me .. i deleted/commented out first and then uploaded it. it did not work so i went on to remove the comments.php file thinking it will work, but it did not.

    Anything else i missed here ?

  15. moshu
    Member
    Posted 6 years ago #

    Comments.php has nothing to do with your problem. Period.

    I suspect your ftp client is not working properly. Delete the index.php and home.php and try uploading again the modified files.

  16. joshlowe
    Member
    Posted 6 years ago #

    I don't see where comments can be posted...
    are you trying to remove the "tags:" line?

  17. ferozkn
    Member
    Posted 6 years ago #

    i am trying to remove this as well : <p>Tags: </p>

    thanks for noticing it

  18. joshlowe
    Member
    Posted 6 years ago #

    Edit your index.php page of your theme, and remove this line:
    <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>

    Edit your single.php page of your theme, and remove this line:
    <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>

    I still don't see where comments are visible now? What else are you trying to remove?

  19. moshu
    Member
    Posted 6 years ago #

    Again: that theme does NOT have single.php - it has home.php and index.php.

  20. ferozkn
    Member
    Posted 6 years ago #

    REally appreciate all your help : I JUST NOTICED..I am not a PHP guy or a computer guy..

    I found two sets of each of wp-admin; wp-content and wp-includes in my wordpress folder in my domain. I dont know how these happened. The php files we are trying to change reside in one set which does not have permission to change. So these are the files that's holding up the changes. I dont know how to change the read / write permission so have to for someone to come in to help.

    if we cant do that , i have to come back to this forum for help again .

    Thanks so much

  21. moshu
    Member
    Posted 6 years ago #

    two sets of each of wp-admin; wp-content and wp-includes in my wordpress folder in my domain

    That's wrong. Delete one of them, you need only one of each.

  22. ferozkn
    Member
    Posted 6 years ago #

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic