In Genesis, the comments form is extremely easy to modify. In this mini-tutorial, I will show you how to modify the comments form to remove the URL or website field. genesis_comment_form_args has three field arguments by default: name/author, email, and url. In this example, I am only removing the URL field argument.
What can I do for you!?
Custom Development
We develop plugins by determining both business/functional and technical requirements, following WordPress development best practices, and using agile methodology to ensure you get the best solution.
Customized Theme
We can customize your theme or child theme, or create a child theme for you based on your needs while enhancing the performance of every individual attribute.
About Travis Smith
As a WordPress enthusiast, developer, and speaker, Travis writes about what he learns in WordPress trying to help other WordPress travelers, beginners and enthusiasts with tutorials, explanations, & demonstrations.
Comments
Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
JR says
This goes in the Functions section of the Theme’s site, right? And does it matter where in the Functions page? Or just at the bottom?
Thanks for the tip! 😉
krishnaTORQUE says
Nope its not working.
Dave says
If this doesn’t work for you, please check out the following link to remove [website] from comments form here: http://www.wpkube.com/how-to-remove-the-website-field-from-the-comment-form/#comment-67277
Scott Buehler says
This code no longer works. I used http://www.wpkube.com/how-to-remove-the-website-field-from-the-comment-form/ and it seams to have worked.
Titus says
Please Help Me out.. Where i have to Use this Code … Style.css or Function.php .. Please Make it Clear
Bob Rockefeller says
This is just the clue I was looking for.
And should work well even though Genesis 2 is out, if XHTML is being used in the child theme. But if the child theme uses HTML5, then there is a small modification required because Genesis 2 in HTML5 mode is using the native WordPress comment form:
add_filter( ‘comment_form_defaults’, ‘brp_comment_form_defaults’ );
function brp_comment_form_defaults( $defaults ) {
unset( $defaults[‘fields’][‘url’] );
return $defaults;
}
Mon ~ At Just Shoppe says
It didn’t work the website or url field is still there. please post some new codes that will work. i am using genesis 2.0 and metro pro child theme