WordPress.org

Ready to get started?Download WordPress

Forums

hide comments default theme (7 posts)

  1. mugger
    Member
    Posted 5 years ago #

    In default theme, comments.php, I have deleted all lines after
    <!-- You can start editing here. -->
    yet I still see "Comments (0)" under posts on blog and
    " Comments (0)
    No Comments
    No comments yet.
    RSS feed for comments on this post. TrackBack URL
    Sorry, the comment form is closed at this time."
    on individual post page.
    WHY?
    How do I suppress all mention of Comments on this theme?

  2. peterjharrison
    Member
    Posted 5 years ago #

    Hi,

    If you look in your index.php file there will be a few lines of code that refer to comments, if you remove these then that should do the trick!

    Regards
    Pete

  3. mugger
    Member
    Posted 5 years ago #

    Thanks. I had already commented those out, to no effect.

  4. peterjharrison
    Member
    Posted 5 years ago #

    Hi,

    Have you got a link to your website and i'll take a look at the page and see if I can see what is happening.

    Regards
    Pete

  5. mugger
    Member
    Posted 5 years ago #

    This site is now being used to test WP thingies.
    http://eat-slim.com/wp/
    I appreciate your interest.

  6. peterjharrison
    Member
    Posted 5 years ago #

    Hi,

    I have had a look at your website and can see that you are using the classic theme. In this theme the 'Filed under:' section you will find in your index.php file, if you remove the code I have pasted below this will get rid of that information.

    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_tags(__('Tags: '), ', ', ' — '); ?> <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>

    The "Comments (0)" section is again in your index.php file, if you locate the code I have posted below and remove it this will get rid of the comments for you.

    <div class="feedback">
         <?php wp_link_pages(); ?>
         <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>

    Regards
    Pete

  7. mugger
    Member
    Posted 5 years ago #

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.