WordPress.org

Ready to get started?Download WordPress

Forums

Simple Catch
[resolved] Remove Comments on Pages, NOT on Posts! (7 posts)

  1. IneSmeets
    Member
    Posted 11 months ago #

    Does anyone know how I can remove the 'Leave a Reply' on pages. I do NOT want to remove de comments on posts.

    I've looked for "<?php comments_template(); ?>", can't find it.

    There's nothing on the pages.php...

    Anyone? I'm just having troubling doing it with this theme (simple catch). I have done this on other themes...

    http://wordpress.org/themes/simple-catch/

  2. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    You should be able to do it using CSS - a link to your site is needed to help with this. Also, do not modify theme files - your changes will be lost when the theme is updated.

  3. IneSmeets
    Member
    Posted 11 months ago #

    My theme file will not be updated since I've renamed it.

    http://www.bogaard.be is the link!

  4. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    See if adding this CSS works:

    .page #respond, .page #comments {
        display: none;
    }

    BTW, you may run into compatibility issues if you are not able to update the theme...

  5. IneSmeets
    Member
    Posted 11 months ago #

    Thx that worked!

    But if I update my theme, all my personal adjustments on the theme will be lost (and I really don't want that :) )

  6. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    But if I update my theme, all my personal adjustments on the theme will be lost (and I really don't want that :) )

    That's why we widely recommend using a Child Theme to modify a theme:

    http://codex.wordpress.org/Child_Themes

  7. IneSmeets
    Member
    Posted 11 months ago #

    Ah ok thx!

Reply

You must log in to post.

About this Theme

About this Topic