Support » Theme: GeneratePress » remove url from comment form

  • hello,
    i want to remove the url field from the comment form, would you please explain how to do it?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Leo


    Hi there,

    Try this snippet:

    function generate_disable_comment_url($fields) {
        return $fields;

    Adding PHP:

    Let me know 🙂

    Thread Starter marties


    i pasted it in functions.php but no luck, still appears…

    Theme Author Tom


    Hi there,

    Which method did you use to add the code?

    If you used Code Snippets, you may need to do this instead:

    add_action( 'after_setup_theme', 'tu_add_comment_fields_filter' );
    function tu_add_comment_fields_filter() {
        add_filter( 'comment_form_default_fields', 'tu_disable_comment_url' );
    function tu_disable_comment_url( $fields ) {
        unset( $fields['url'] );
        return $fields;
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘remove url from comment form’ is closed to new replies.