WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how can I make the whole comments dissapear (4 posts)

  1. ioannicut
    Member
    Posted 5 years ago #

    hello Dear community,

    I want the following section:

    No Comments

    No comments yet.

    RSS feed for comments on this post. TrackBack URL

    Sorry, the comment form is closed at this time.

    NOT to show up, except into the BLOG section.

    the site I am talking about is http://inspiredachievement.ro

    thank you for your help in advance,

    Ioan

  2. ClaytonJames
    Member
    Posted 5 years ago #

    NOT to show up, except into the BLOG section.

    Quick and simple version.

    1) Backup the theme files.

    2) Open the theme's folder and find single.php, page.php, and any other custom page templates that exist, and locate this;

    <p class="postmetadata"><?php the_tags('Tags: ', ', ', ''); ?> Posted in <?php the_category(', ') ?> |  <!-- by <?php the_author() ?> | --><?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    
    			</div>
    <?php comments_template(); // Get wp-comments.php template ?>

    Start by removing this:

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

    and this;

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

    If it is not exactly what you want, restore the files and adjust the deletions to your needs. Other methods exist, and they might be worth searching out before deciding what to do.

    [Edit] I urge you, do not do this without having a backup of the files you change. Mistakes and bad ideas can always be fixed in just seconds with backup files. Best wishes.

  3. ioannicut
    Member
    Posted 5 years ago #

    Clayton,

    YOU Rock, Brother! you are fantastic!

    I did back up the files before (with filezilla) and then modified page.php. I got exactly what I expected.

    thank you for being precise and making a difference into my life, so I could further make a difference into some other people lives!

    sincerely yours,

    Ioan

  4. ClaytonJames
    Member
    Posted 5 years ago #

    You are very welcome. I'm glad it worked the way you wanted it to.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags