Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5994

    Sorry.. can’t find this out!!

    How can I :

    - Delete: Email and Website

    - Delete: Available tags (You may use these HTML tags and attributes: etc….)

    in LEAVE A REPLY section of the blog.

    All I want is: Name and Message.

    Thanks a lot. I’ve been looking all over for this … php files, wordpress panel ..

    #52511

    Hey,

    Coalition uses the builtin comment_form function.

    To remove the Website/URL field, you can apply a filter. Add this to your functions.php file:

    add_filter('comment_form_default_fields', 'remove_url');
    function remove_url($val) {
    $val['url'] = '';
    return $val;
    }

    #52512

    Thanks!

    For others who might want to know the same …

    To hide “email” “url” and “allowed tags”

    add_filter(‘comment_form_default_fields’, ‘remove_url’);

    function remove_url($val) {

    $val = ”;

    return $val;

    }

    add_filter(‘comment_form_default_fields’, ‘remove_email’);

    function remove_email($val) {

    $val = ”;

    return $val;

    }

    in CSS editor:

    .form-allowed-tags {

    display: none;

    }

    #52513

    Glad that I could help you :)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Changing comment section in Blog’ is closed to new replies.