WordPress.org

Ready to get started?Download WordPress

Forums

Removing Comment Options from Pages (5 posts)

  1. davidhoward
    Member
    Posted 1 year ago #

    Hello

    Here's my site:

    http://inprinciplemagazine.co.uk/inprinciplemagazine/

    I have disabled comments globally and this has worked on individual posts.
    However I still have the following text on my Pages

    Please comment with your real name using good manners.
    Leave a Reply
    You must be logged in to post a comment.

    I'd like to remove this.
    Can anyone tell me how?

    Thank you.

    Dave H

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You can do that using CSS to hide that section of the page -- but before making any changes, you should really create a child theme or use a custom-CSS plug-in (or your theme might have that as an option). Otherwise all your changes will be lost when the theme is updated.

    Once you have that set up, add this to the CSS:

    #comments-template {
       display: none;
    }
  3. HasanulBanna
    Blocked
    Posted 1 year ago #

    Removed comment code from page.php

    If you share your page.php i can edit it for you :)

  4. davidhoward
    Member
    Posted 1 year ago #

    Hello Hasanul

    I'm using the Path theme from ThemeHybrid.

    It doesn't seem to have a page.php but instead it has a page-templates folder in which are a number of templates.

    My page uses the "default template" and I have no idea which one that is! I've looked in a few and can't see anything easy to remove. :-/

    Any thoughts?

    Dave

  5. davidhoward
    Member
    Posted 1 year ago #

    Hi WyPogi

    I'm going to read a Child Theme tutorial!

    D

Topic Closed

This topic has been closed to new replies.

About this Topic