Remove "website" field from comments

  • Author
    Posts
  • #72135

    Hi,

    How can I get rid of the field “website” in the comment form on my blog?

    It can’t be removed in Settings -> Discussion.

    Thanks for the help.

    Website: brainfuelness.com

    #72254
    Zed
    Cryout Creations mastermind

    You can use WordPress’ comment_form_default_fields filter or a plugin to control the fields displayed in the comments form.

    If you use custom code use a number higher than 11 for the priority parameter (to make sure your filter is applied after the theme’s).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #72408

    Thank you for your answer. I had a look at the link you provided and if I want this filter to work I have to add it to the theme’s functions.php. But the Anima theme doesn’t let me access that, right?

    After browsing a bit I found this CSS code;

    #commentform .comment-form-url {display:none;

    That get’s the job done, but still I would be interested to know what you would have done yourself.

    • This reply was modified 5 years ago by ToTcH.
    #72651
    Zed
    Cryout Creations mastermind

    Accessing theme or plugin files is a feature provided (or blocked) by WordPress, not the theme. However, editing theme files directly is generally bad practice (as such changes would be lost on every theme update). Customizations such as this need to be done either manually using a child theme or using alternative solutions (I remember there is a plugin in the repository which allows customizing comment form fields).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Remove "website" field from comments’ is closed to new replies.