Skip to content
Public Ticket #16775

Setting Comment in posting

Conversation thread

PenciDesign Supporter replied

Staff Reply

Hi,

You can delete the email & website field by following these steps:

1. Install the plugin: Code Snippets: https://wordpress.org/plugins/code-snippets/,

2. Go to Snippets, Add a new snippet code:

<?php
add_filter('comment_form_default_fields', 'unset_url_field');
function unset_url_field($fields){
    if(isset($fields['url'])) {
        unset($fields['url']);
    }
    if(isset($fields['email'])) {
        unset($fields['email']);
    }
    return $fields;
}

Save the change and reload your site.

If you want to customize more fields and structure, please go to "wp-content/themes/pennews/comments.php"  and edit.

Best Regards,
PenciDesign.

rizkio1099 started the conversation

Conversation Start

How to change options or delete (Name, email, website) in the comment column?

Want to join this conversation or access attachments? Sign in first.