Tagged: x
-
AuthorPosts
-
August 21, 2016 at 8:13 pm #1140836
Starlord999ParticipantSmall request today. Can you let me how to go about changing the text that is overlayed on the products on the category page. It currently reads “details” but actually acts as an add to cart. You can see it at http://www.bayatticv2.com/product-category/robert-kelsey-greeting-cards/.
Thanks in advance.
DavidAugust 21, 2016 at 9:59 pm #1140904
Rue NelModeratorHello David,
Thanks for writing in! To resolve this issue and change the text from “details” to something else, please insert this following code in your child theme’s functions.php file.
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text', 50 ); function woo_archive_custom_cart_button_text() { return __( 'Add to my Basket', 'woocommerce' ); }We would loved to know if this has work for you. Thank you.
August 22, 2016 at 2:32 am #1141084
Starlord999ParticipantI am afraid that did not work, any other ideas?
David
August 22, 2016 at 2:40 am #1141090
Rue NelModeratorHello David,
Thanks for the updates! The code previously given should have work because I have tested it first before giving the solutions to you. To better assist you with regards to this issue, would you mind providing us the url of your site with login credentials so we can take a closer look and fix the issue? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP Hostname
– FTP Username
– FTP PasswordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
August 22, 2016 at 2:47 am #1141100
Starlord999ParticipantThis reply has been marked as private.August 22, 2016 at 2:59 am #1141107
Rue NelModeratorHello There,
Thank you for the very detailed information. Actually the given code is working. It turns out that you have added this JS code:
(function($){ $('a.button.product_type_simple').html('Details'); })(jQuery)And this is one big reason why it is showing “Details” and not the desired text you want to place it to display within the button. Please remove this JS code from you customizer, Appearance > Customize > Custom > JS and see the result.
Please let us know how it goes.
August 22, 2016 at 3:39 am #1141137
Starlord999ParticipantSorry about that, I feel stupid, forgot I had added that.
All fixed now, thanks for the help.David
August 22, 2016 at 3:47 am #1141144
Rue NelModeratorHey David,
No Worries and you are most welcome! We’re happy to help you out.
If you need anything else we can help you with, don’t hesitate to open another thread.Best Regards.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1140836 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
