how to delete comment area on custom page thesis

3 replies
  • WEB DESIGN
  • |
how to delete comment area on custom page in thesis wordpress theme.
i want to make a contact us page and i use here custom form, but i could delete "leave a reply" comment area.
#area #comment #custom #delete #page #thesis
  • Profile picture of the author SEOChemist
    on the page editor you should be able to disable/enable comments
    Signature

    Filled with SEO Goodness

    {{ DiscussionBoard.errors[5437409].message }}
  • Profile picture of the author Istvan Horvath
    Disabling comments and deleting the comment area are not the same!

    Normal theme designers make Page templates without including the comment area...

    If yours has it, you will need to create a Page template without it.

    Open your page.php template file in a plain text editor (NotePad, PSpad etc.)

    Edit out or delete the call for comments:
    <?php comments_template(); ?>

    Then save the template as... nocomment-page.php (or whatever)
    and do as described here:
    Pages « WordPress Codex

    In wp-admin when editing your Pages, you will have on the right the option to select which Page template to use to display it.
    Signature

    {{ DiscussionBoard.errors[5437968].message }}
  • Profile picture of the author retroid
    ^
    Or you can use a conditional tag on your page.php file to turn on/off the comment area.

    <?php if ( get_post_custom_values('comments') ) comments_template(); ?>

    When you want to include a comment area on a page, simply add a key+value of "comments" custom field.
    {{ DiscussionBoard.errors[5439014].message }}

Trending Topics