Support » Fixing WordPress » Remove link box from comments

  • jeffocal

    (@jeffocal)



    Is there a way I can remove the link box from the comments section all posts on my Imagineser’s Chronical blog.

    Thank you

    Jeff

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    Try using this in your theme’s functions.php file:

    // Remove comment form fields - e.g., remove Comment Websites (url) field
    add_filter('comment_form_default_fields', 'wpsites_remove_website_url_field');
    function wpsites_remove_website_url_field($fields) {
    if(isset($fields['url']))
    unset($fields['url']);
    return $fields;
    }

    But be aware that your customizations will be over-written the next time you upgrade. For this reason, consider creating a Child Theme.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.