Hello,
is there any way to translate inserted texts “before the form” and “after the form” into other languages? I use Polylang to translate the website.
Thank you
]]>Let’s say Website field is hidden then we remove “, and website “ and make “, Email” say “, and email“
Let’s say Email field is hidden then we remove “, Email“
Let’s say both Email & Website field is hidden then we remove “, Email , and website“
My code not perfect but it works
public function comment_form_default_fields_filter($fields) {
// Fetch options from wherever they are defined
$options = $this->options(); // Assuming $this->options() retrieves the options array
// Initialize text variables for conditional use
$url_text = ', and website '; // Default text for URL field
$email_text = ', email'; // Default text for email field
// Check if email field should be removed
if (!empty($options['remove_email'])) {
unset($fields['email']); // Remove email field from fields array
$email_text = ''; // Update email text if field is removed
}
// Check if URL field should be hidden
if (!empty($options['hide_url'])) {
unset($fields['url']); // Remove URL field from fields array
$url_text = ''; // Update URL text if field is hidden
// If both remove_email and hide_url are true, reset email_text
if (!empty($options['remove_email'])) {
$email_text = '';
} else {
$email_text = ', and email';
}
}
// Fetch current commenter's information
$commenter = wp_get_current_commenter();
// Check if commenter's email is present to pre-check consent checkbox
$consent = empty($commenter['comment_author_email']) ? '' : ' checked="checked"';
// Construct the consent checkbox field with appropriate text
$fields['cookies'] = '<p class="comment-form-cookies-consent"><label for="wp-comment-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' . 'Save my name' . $email_text . $url_text . ' in this browser for the next time I comment.</label></p>';
// Return modified fields array
return $fields;
}
]]>
Hi Thomas, I’m doing some test on my site performance and security.
If I was to delete the plugin, what happens with the comments?
Do they still display? Thanks!
Claire.
]]>add options to edit custom_comment_checkbox_text as removing website field does no remove website from wp-comment-cookies-consent Save my name, email, and website in this browser for the next time I comment. below if the code snippet im using in the custom I’m currently making for myself.
// Function to modify the text next to the checkbox
function universal_comment_checkbox_text($fields) {
$commenter = wp_get_current_commenter();
$consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';
$fields['cookies'] = '<p class="comment-form-cookies-consent"><label for="wp-comment-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .
'Save my info in this browser for the next time I comment.</label></p>';
return $fields;
}
add_filter('comment_form_default_fields', 'custom_comment_checkbox_text');
pulse if the can create a comments policy page and add below comment-form-cookies-consent
like this
function wpbeginner_comment_text_before($arg) {
$arg['comment_notes_before'] .= '<p class="comment-policy"">We are glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our <a >comment policy</a>.</p>';
return $arg;
}
add_filter('comment_form_defaults', 'wpbeginner_comment_text_before');
]]>
Hi! I am building a blog for a client and using this plugin for the first time. I chose the two-column option, and it looks great on both computer and tablet. But on mobile, it shrinks the boxes to about 65% of the screen width. I have embedded it in the Brizy builder for the blog post layout using a shortcode and I’ve done no further customizations. Is there a way to make it full-screen on mobile as well?
On mobile of course it’s only one column, stacked, but it’s just the width that seems off, being a little more than half of the screen with the rest (on the right side of the form) being blank.
Thank you in advance, Sofia
]]>When writing in the message box, the distance between the lines is too small. See image below.
Why would this be happening, and how can I fix it, please.
I installed your plugin and it’s great to suppress the email and web site fields. When I tried to make the name field required, the web site has problems. Hit submit on a comment without filling in the name, then a white page tells visitor they must fill in required fields. Then, pressing return to previous page, visitor is shown HTTPS 405 Method Not Allowed on a white screen. When I deactivate your plugin, the HTTPS 405 Method Not Allowed error goes away. Please help if you can. I like your plugin would be great if I can use it.
]]>Hi!
I’m just wondering if this is working with the latest updates of wordpress?
…since the last update was 9 months ago and wordpress says it hasn’t been tested with the new version
]]>Hi,
I want add your comment form in my events.
Is another plugin and i want add on single event template this comment form.
How to do this?
]]>Hi, could you give me a css code to remove the website field? I haven′t been able to do it myself. Thanks!
]]>Hello Thomas, thanks for this option.
I would like to add a shortcode (instead of a text) before or after the comment form. However, it currently does not render.
How can I enable rendering shortcodes in the comment form when using your plugin?
]]>I have enable comments on my blog and I have the twenty twelve theme. When I post a comment the comment is approved and I can see it on my backend in comments section. It also shows the number of comments on the blog post. The comments themselves do not show on my blog, I have to log in for them to show on the post page.
When I check the comment permalink it shows comment-page-1/#comment-3 on the end of the permalink and the comments show when I click the permalink.
example
myblog.com/hi/comment-page-1/#comment-3 (comments show here)
myblog.com/hi (comments don’t show here.)
Why is this happening?
]]>Is this plugin compatible with WordPress Multisite? We run a very large multisite network, and we are being required to add a security-related disclaimer to the comment field. So far, this plugin is the only one we’ve found that will do what we need, but it’s unclear whether it is compatible with WordPress Multisite.
There are other plugins that customize the comment form, but we’re not finding any that are compatible with Multisite, with the exception of the “de:Comments” plugin, which is somewhat expensive and includes SO many other features that we do not need. We just need a simple plugin that is compatible with Multisite that will allow us to add a security-related disclaimer above the comment form.
Thank you in advance for any feedback!
]]>I tried to stop link to headless wordpress site after click submit button in comment form and want to stay at that page (I use wordpress api to make a website) after i click submit and stay in that post? i am new learning.
I use wordpress theme: twenty fifteen
( i tried to us plugin for only this page first)
]]>Is it possible to change the height of the comment form?
Thank you.
I have a total of 9 CPTs created with pods on my site, the problem some pods on which comments support has been uncheked in advanced options seems to be still showing the comments form created with Advanced comment forms on the frontend & vice versa i.e some pods do not show comments form on the front end even after enabling comments support in advance options.
I need the comment forms to be enabled for only 1 CPT & disabled for the rest 8 on my site, please help with resolving this
]]>The ‘Comments are closed’ notification does not appear on posts that have no comments after comments are automatically closed.
It works fine on other posts that have comments.
]]>Hi!
I have set the page to allow ‘Discussions’ and ‘Comments’ and I have been able to get the comment form to display, however once a user has posted a comment it is not displayed at the front-end (I can see it when I go to edit the page however).
Please help! ??
B
]]>Hello, for some reason, the short code won’t work in my time-line post, but will work on my wp- pages, and wp- post. Please help, I really love this plugin and need it to finish up my website. Is there any php code i can use to insert it into the back end?
I’m using a plugin called:Cool Time-line PRO. I literally just want to make it so the person can comment on the timeline post
Hi Thomas
I love the intent of your plugin.
After installation and activation, I cannot find the “Comments” link? It is definately not showing in Settings. The site is using the standard WP comments function but built with BoldGrid plugin. Any thoughts?
Thanks
Dave
Hello Thomas,
i believe am just a bit blind. Your plugin should be found under “Einstellungen, Comment Form”, right?
So, it is active in the plugin menue and i am also able to use the shortcut and it works. I am just missing the settings.
Would be great for a hint. If you send me an e-mail address, I will send you a screenshot.
Thank you so much.
Kind regards
Florian
]]>may i use this plugin inwoocommerce? and remove or add comment field in woocommerce.
]]>Hello, thanks you for the plugin,
Can i add a custom comment form to page especific, without override the comment form of post?
Thanks.
]]>Hi, I have downloaded your plugin, It is great btw.
However, I was wondering if I was to comment out oe disable WordPress default comment box, will yours also disappear, as my page now has two comment boxes.
]]>Hi, great plugin!
Is it possible to add the usual star rating system?
After installing the plug in, I followed the instructions and ticked “remove text after the form”
However this is still appearing:
XHTML: You can use these tags: <abbr title=””> <acronym title=””> <b>
]]><cite>
<i> <q cite=""> <s> <strike>What do I have to do to remove it?
(I am using Gantry, Requiem Theme)
Greetings!
The plugin works great for me. I use it to remove the “website” field. I using it in conjunction with a reCAPTCHA plugin and they work well together.
The only other thing I’d like to see added is the ability to change the form text at the top (“Leave a Reply”). I’d love to see an added field in the plugin that would allow me to enter my own text to replace that text entirely with something of my own. Any way to add that?
]]>Hello,
Is there an update planned to make this pluing GDPR compliant with a consent box to tick?
Thanks!
Claire.
Hello, is there any chance I can change the label of website field to ‘Reference Number’? I have had to remove the field for now but ideally I need it.
Thanks!
]]>he button doesn’t appear and I have added [comment-form] into the page text box?
]]>