• Resolved cosmocanuck

    (@cosmocanuck)


    Hi! I need to change the wording of the checkbox text on the Reviews tab of WooCommerce product pages, so it doesn’t refer to the website – since that field is not included. Right now it reads, “Save my name, email, and website in this browser for the next time I comment.”

    I’ve tried the function found all over the internet, to modify the “comment_form_default_fields” hook and give a new value for the text. But that only affects standard WordPress commenting, not the Review comments in WC.

    Finally I discovered there is a filter “woocommerce_product_review_comment_form_args” which seems to be what I need to modify – but my attempts to do so have failed. Can anyone advise exactly how I do this? Thanks!!!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @cosmocanuck! How’s it going today?

    I am afraid that this is not handled by the WooCommerce plugin but by your theme.

    The good news is that you can manage it by making some tweaks to their (Divi) Modules.

    You can reach out directly to your theme developer to see how it works or check their documentation.

    I hope that helps! My very best!

    Thread Starter cosmocanuck

    (@cosmocanuck)

    Just to help others, the solution turned out to be adding a bit of Javascript to replace the text:

    <script type="text/javascript">
    jQuery( document ).ready(function() {
    jQuery('body.single-product p.comment-form-cookies-consent label').text('new-text');
    });
    </script>

    Just replace the ‘new-text’ part with your actual new text!

    It’s the “body.single-product” selector that limits this change to just product reviews, otherwise it would affect blog comments too.

    I’m using Divi so there was an option for adding this under Divi settings, but otherwise it could simply be added to the <head> of your site.

    Hi @cosmocanuck!

    That’s great! Thank you for sharing the solution you got with the community 🙂

    Since this thread is already resolved if you have further questions we recommend creating a new topic.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Change wording “Save my name, email, and website…”’ is closed to new replies.