• Resolved antoniocarloslima

    (@antoniocarloslima)


    This plugin added a “website” field to my comments form

    I do not want this field

    I uninstalled the plugin but the field remained

    Please, I want a solution’for this problem.

Viewing 1 replies (of 1 total)
  • Plugin Author jmviade

    (@jmviade)

    Thanks for your comment, Antonio Carlos,

    But I’m sorry to say that, this plugin doesn’t generate nor create a website field.

    I suppose that this issue must be related to another theme, plugin or WP update but recaptcha plugin doesn’t interact with website: name="url" in any way.

    In any case, a possible solution for hidding completely ‘website’ field is to add this code inside the functions.php file of your theme

    function my_custom_comment_fields( $fields ){
      if(isset($fields['url']))
        unset($fields['url']);
      return $fields;
    }
    add_filter( 'comment_form_default_fields', 'my_custom_comment_fields' );

    It’s a global filter that works directly over ‘\wp-includes\comment-template.php’ file (line 2220) and serves to select what fields you want show.

    Finally, of course, if I’m wrong, please, send me some other additional information about your configuration, wp version, installed plugins, etc. and I’ll try to find out what could be happening.

    Best,

    Joan Miquel

    • This reply was modified 6 years, 2 months ago by jmviade.
    • This reply was modified 6 years, 2 months ago by jmviade.
Viewing 1 replies (of 1 total)
  • The topic ‘Very annoying bug’ is closed to new replies.