I’d like to remove the “website” field from the comment form.
I’m at https://thirstyroamers.com
This plugin does not work on XTheme Integrity. https://wordpress.org/plugins/remove-comment-websiteurl-box/
I’d like to remove the “website” field from the comment form.
I’m at https://thirstyroamers.com
This plugin does not work on XTheme Integrity. https://wordpress.org/plugins/remove-comment-websiteurl-box/
Hello @theresaladner,
Thanks for writing in!
You can take a look at the solution shared in following thread:
Alternatively, you also have the options of adding following CSS under X > Theme Options > CSS:
p.comment-form-url {
display: none;
}
1- I have found the proper CSS code selector using the Chrome browser Developer Toolbar: https://www.youtube.com/watch?v=wcFnnxfA70g
2- For the CSS code itself, I suggest that you get started with this tutorial: https://www.youtube.com/watch?v=yfoY53QXEnI
Thanks.
The CSS worked thank you.
Now how do I change the “Save my name, email, and website in this browser for the next time I comment” sentence?
Hello @theresaladner,
The mentioned keyword is a default from WordPress comments section. If you want to change it, please check out this link:
We would love to know if this has worked for you. Thank you.
The information on that link is confusing and not helpful.
Hey @theresaladner,
To change the keyword into something else, since your child theme is set up already, please add the following code in your child theme’s functions.php file
add_filter( 'gettext', 'theme_change_comment_cookie_label', 20, 3 );
function theme_change_comment_cookie_label( $translated_text, $text, $domain ) {
if ( is_singular() ) {
switch ( $translated_text ) {
case 'Save my name, email, and website in this browser for the next time I comment.' :
$translated_text = __( 'Set a cookie to save my name and email to use for future comments.', 'frontier' );
break;
}
}
return $translated_text;
}
Hope this makes sense.
Thank you, that worked.
For future reference, it may be helpful to tell people where they can find the function.php editor in wordpress. I thought I had to go through my host.
Yes, sorry about that. Although the Wordpress theme editor works we don’t recommend it because a little mistake in there can lock up your site.
We recommend editing child theme via FTP instead, in case you made a mistake you can immediately correct it.
Thanks,
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.