Unable to disable ‘website’ field in comments
-
I recently switched to Astra from a different theme and in the main am pleased with it. However, I just noticed a weird problem: I no longer seem able to suppress the inclusion of the URL field in comments.
Some time ago, I’d added a function to my child themes, based on this article by Abbas Suterwala:
function remove_comment_fields($fields) { unset($fields['url']); return $fields; } add_filter('comment_form_default_fields','remove_comment_fields');
This had worked with my previous themes, and continues to work on my other WordPress sites with different themes. So, when I added Astra, I put that same function in the functions.php of my Astra child theme. However, it doesn’t work — the “Website” field still appears in the comment box.
Puzzled, I tried adding a third-party plugin, QuantumCloud’s Comment Link Remove, which also has an option to remove that box. It doesn’t work either.
Does Astra handle the comments box in some different way that might affect the behavior of this function?
I really don’t need people to be able to include their URL, which mostly serves to draw spam commenters, so I’d really like to once again remove that field.
Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Unable to disable ‘website’ field in comments’ is closed to new replies.