Tagged: x
-
AuthorPosts
-
March 23, 2017 at 6:41 pm #1418339
JamesZLParticipantHi X Theme Support
How do I change the woocommerce cart widget (which I’ve added on the right side in the shop) text “no products in the cart” to something else?
Thank you!
March 23, 2017 at 6:42 pm #1418341
JamesZLParticipantThis reply has been marked as private.March 24, 2017 at 1:53 am #1418691
Rue NelModeratorHello There,
Thanks for writing in! To resolve this issue, assuming that the child theme is set up, please add the following code in your child theme’s functions.php file
// Change Cart Totals // ============================================================================= function change_no_product_text($translated) { $translated = str_ireplace('No products in the cart.', 'insert your translation here', $translated); return $translated; } add_filter('gettext', 'change_no_product_text' ); // =============================================================================We would loved to know if this has work for you. Thank you.
March 24, 2017 at 6:21 am #1418852
JamesZLParticipantHi
I added the code to my child theme’s functions.php but it didn’t work
Any idea why that could be?
EDIT:
It works now! Apparently I just had to give it a little time!
Great job!
March 24, 2017 at 8:37 am #1418968
Paul RModeratorGlad to know it works. Have a nice day!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1418339 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
