I recently upgraded from simple catch to simple catch pro. While using simple catch, i successfully managed to remove the website and email field with this function:
function wpb_disable_comment_url($fields)
{
unset($fields[‘url’]);
return $fields;
}
add_filter(‘comment_form_default_fields’,’wpb_disable_comment_url’);
function wpb_disable_comment_email($fields)
{
unset($fields[’email’]);
return $fields;
}
add_filter(‘comment_form_default_fields’,’wpb_disable_comment_email’);
This no longer works in simple catch pro. I’m kindly requesting help with this issue.
Hey Pearl,
That code would go at the end of your functions.php file of your child theme. If you do not have a child theme, catch themes has a guide on how to create child themes (I do not know the specific url but you can google it). There are a few plugins that could aslo help to make a child theme if the process seems to hard.
And the last resort (if everything about a child theme seems to0 complicated and you are scared of messing things up) is to add the code to the themes functions.php file BUT just before you do a theme update, go to the functions.php file copy the code, do the update and then open the file again and paste the code afresh since every time you do a theme update the functions.php file will be wiped of any code that you added.
To find your functions.php file go to your cp panel open file manager go to wp content>>themes>>[select the theme that is currently active]>>functions.php However, when you open the theme that is active, you will see a folder called functions DO NOT change the contents of the folder. Simply scroll down and find the functions.php FILE. That’s what you are looking for, the file and not the folder.
Author
Posts
Viewing 9 posts - 1 through 9 (of 9 total)
The topic ‘Website field and email field in comments’ is closed to new replies.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities...
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Tagged: comments