Home › Forums › Support › Hide/Disable comment URL field This topic has 7 replies, 2 voices, and was last updated 3 years, 8 months ago by Leo. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts September 14, 2018 at 9:27 am #677330 ETO Hello, How can I disable comment URL field? I had been using this plugin, but it doesn’t work with GP. It would be great to do this without a plugin. September 14, 2018 at 9:35 am #677342 LeoStaff Customer Support Hit here, This should help: https://docs.generatepress.com/article/remove-e-mail-and-url-field-from-comment-form/ September 14, 2018 at 10:07 am #677367 ETO Thank you, but this function disables both e-mail and URL fields. I would like to remove only URL field. September 14, 2018 at 11:27 am #677407 LeoStaff Customer Support Have you tried removing the unset($fields['email']); line? Or does that not work? February 28, 2019 at 10:42 am #824805 Simon Thanks for this Leo. Just implimented it (with unset($fields[’email’]); removed) and it works perfectly. February 28, 2019 at 11:23 am #824838 LeoStaff Customer Support No problem 🙂 July 14, 2020 at 7:10 pm #1363747 Ricardo Hi where do i add this php to remove the url field? In functions php? add_action( ‘after_setup_theme’, ‘tu_add_comment_url_filter’ ); function tu_add_comment_url_filter() { add_filter( ‘comment_form_default_fields’, ‘tu_disable_comment_url’, 20 ); } function tu_disable_comment_url($fields) { unset($fields[‘url’]); unset($fields[’email’]); return $fields; } July 14, 2020 at 8:58 pm #1363803 LeoStaff Customer Support Adding PHP: https://docs.generatepress.com/article/adding-php/ Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In