WordPress.org

Ready to get started?Download WordPress

Forums

How to modify comments template? (7 posts)

  1. PuNK DeSi
    Member
    Posted 5 years ago #

    in my comments template fields Name, email & Website & comment boX

    i want to remove website field from it !
    want to show only name , email & comment text-box
    i already delete the field website from comments.php in my theme

    but still website field is there in comments

    please suggest how can i remove that field from comments.

  2. mhawkins
    Member
    Posted 5 years ago #

    Ha - I'm having the exact same problem. I have a 'comments.php' file in my theme, but no matter what I edit in there it's always showing the 'default' theme comment form. Guess I won't hold my breath :-)

  3. PuNK DeSi
    Member
    Posted 5 years ago #

    But when i use single-x.php for a separate category
    e.g. for category id=40 i used single-40.php

    opening single post for 40 category new modified comments template shown
    i.e. without website field(which i modified in theme)

    How can i set modified comment form to all other posts & categories also?

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    The form is created by your theme. To modify it, you have to find it in your theme and remove it. Simple as that, really.

    Normally, the form is shown by the comments.php file, but depending on the theme structure, it could be anywhere.

  5. PuNK DeSi
    Member
    Posted 5 years ago #

    yes i removed & modified the theme file comments.php

    problem is:
    only single-40.php display modified comments form template
    while single.php for all posts shows the old comment template

  6. PuNK DeSi
    Member
    Posted 5 years ago #

    Hello friends

    Anybody found solution?

  7. Saurus
    Member
    Posted 5 years ago #

    You CANNOT just remove/rename a PHP file from your theme, and the PHP file you call single-40.php is not a standard WP accepted file name. Since you choose not to include a link to your site there is little can be done to even try to help. I suggest you read the codex on templates.

Topic Closed

This topic has been closed to new replies.

About this Topic