• 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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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

    Thread Starter mugger

    (@mugger)

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

    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

    Thread Starter mugger

    (@mugger)

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

    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

    Thread Starter mugger

    (@mugger)

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘hide comments default theme’ is closed to new replies.