How to remove website url field from WordPress comment form in StudioPress Genesis

If your site allows comments, you may not want the comment form to ask for a website url from the commenter. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to make it so your comment form no longer asks for the commenter’s website url.

/**
 * Remove website url from comment form 
 *
 * @author WPSnacks.com
 * @link http://www.wpsnacks.com
 */
add_filter( 'genesis_comment_form_args', 'wps_comment_form_args' );
function wps_comment_form_args( $args ) {
unset( $args['fields']['url'] );
return $args;
}

That’s it, now your comment form should no longer ask commenters for their website url. Hope this helps, enjoy!

   Related Sponsored Links

Disclaimer: The information contained in this website is for general information purposes only and in no event will this site or its owners be liable for any losses or damages associated with your use of our site or content. Click here to see our full Disclaimer.

Comments

  1. Thanks for the code snippet.

Leave a Comment

*