Support » Theme: Agama » Remove URL from comment form

  • Resolved galiulinr


    I created the child theme of Agama. How to delete the URL field from the comment form. I used different methods of adding code to the child theme function, but they did not work for me.
    In the function of the main theme there is the following filter:
    add_filter( 'comment_form_default_fields', 'agama_comment_form_fields' );
    I need to remove: $fields['url']

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author themevision


    Hello @galiulinr!

    You can solve this with additional CSS code.
    Add custom code in : Customize->Additional CSS


    #respond label[for="url"],
    #respond input[name="url"] { display: none; }


    Thread Starter galiulinr


    Hello @themevision
    Thanks, but I did differently, I added this code to the child theme function.

    function my_comment_form_fields( $fields ) {
      $fields['url'] = '';
      return $fields;
    add_filter( 'comment_form_default_fields', 'my_comment_form_fields',15 );

    and it works for me.

    Theme Author themevision



    I’m glad you found the solution that works for you,
    and yes, it is possible to do that on that way , but I think is much easier to do that with additional CSS.(especially for non-programmers).

    Best Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove URL from comment form’ is closed to new replies.