Here’s a snippet of code to add to your Genesis Framework child theme in order to remove the Website field on your comment form. Add this to the functions.php file in your child theme’s folder.
//* Remove the website field from the comment form add_filter( 'genesis_comment_form_args', 'url_filtered' ); add_filter( 'comment_form_default_fields', 'url_filtered' ); function url_filtered( $fields ) { if ( isset( $fields['url'] ) ) unset( $fields['url'] ); if ( isset( $fields['fields']['url'] ) ) unset( $fields['fields']['url'] ); return $fields; }
Leave a Reply