• Resolved Daria

    (@daria2b)


    I’m trying to make changes to the comment_form function on Hestia and I cannot find the instance I’m looking for. It’s unclear where the needed information is.

    Can you please help me find this:
    comment_form(array('action' => 'wp-comments-post.php')); ?

    I’m also trying to make changes to the form itself, like remove the website field and change titles. But I can’t find the right file.

Viewing 1 replies (of 1 total)
  • Hi @daria2b

    You can check comment.php file under the theme folder.

    You can add the following code to your child theme’s functions.php file or a site-specific plugin to remove the website field from the comment section.

    add_filter('comment_form_default_fields', 'unset_url_field');
    function unset_url_field($fields){
        if(isset($fields['url']))
           unset($fields['url']);
           return $fields;
    }
Viewing 1 replies (of 1 total)

The topic ‘comment_form nowhere to be found’ is closed to new replies.