Tagged: x
-
AuthorPosts
-
September 28, 2016 at 11:45 pm #1195157
OscarParticipantHello, I am using X-theme for my client site you can see from this link: http://intercambioesportivo.com/
I always find the answers in the forum before making a post, this is my first, I had found the answer to my question on another topic, but in my case is quite incomplete.
You can see here (https://community.theme.co/forums/topic/remove-cart-icon-on-add-to-cart-button/)
I added the CSS code to subscribe to the text:
.woocommerce .button.product_type_simple:before, .woocommerce .button.single_add_to_cart_button:before, .woocommerce-page .button.product_type_simple:before, .woocommerce-page .button.single_add_to_cart_button:before { content: "Inscrever-se" !important; margin-right: 5px; }but I still have the original text of the button. I would like to remove this text. I imagine it’s silly, I feel even a little silly to ask about it, but it would help a lot!
My regards
September 28, 2016 at 11:59 pm #1195169
LelyModeratorHi There,
Please update above CSS to this:
.woocommerce .button.product_type_simple:before, .woocommerce .button.single_add_to_cart_button:before, .woocommerce-page .button.product_type_simple:before, .woocommerce-page .button.single_add_to_cart_button:before { content: "Inscrever-se" !important; margin-right: 5px; font-size: 14px !important; padding: 1em 3em !important; color: #ffffff !important; }Then also add this:
.woocommerce .button.product_type_simple, .woocommerce .button.single_add_to_cart_button, .woocommerce-page .button.product_type_simple, .woocommerce-page .button.single_add_to_cart_button { color: transparent; }Hope this helps.
September 29, 2016 at 10:26 am #1195866
OscarParticipantHi!
Lely my friend, the original text still here, look:
September 29, 2016 at 11:15 am #1195949
DarshanaModeratorHi there,
To assist you with this issue, we’ll first need you to provide us with your URL. 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.
September 29, 2016 at 11:23 am #1195956
OscarParticipantOk, no problem 🙂
September 29, 2016 at 1:20 pm #1196122
RupokMemberHi there,
Sorry for the confusion. That’s you already provided earlier. Kindly provide the exact URL in question. Your site is not loading properly so can’t navigate the pages to find the page in question.
Thanks!
September 29, 2016 at 2:54 pm #1196257
OscarParticipantLink of products list page: http://www.intercambioesportivo.com/inscricoes-seletivas/
link of one product: http://www.intercambioesportivo.com/inscricoes-seletivas/seletivas-de-futebol-em-niteroi/
i hope its help!
September 29, 2016 at 8:53 pm #1196752
Rue NelModeratorHello There,
To resolve this issue, please add the following JS code in the customizer, Appearance > Customize > Custom > Javascript
(function($){ $('.single-product .single_add_to_cart_button').text(''); })(jQuery);Hope this helps. Please let us know how it goes.
September 30, 2016 at 10:00 am #1197366
OscarParticipantSorry friend, but had no effect. Look: http://www.intercambioesportivo.com/inscricoes-seletivas/
I’m really stuck on this problem, I hope you can help me.
I think not change the name of any class, but I have added an extension of woocomence: Registrations for WooCommerce. (additional information)
September 30, 2016 at 12:11 pm #1197549
OscarParticipantThis reply has been marked as private.September 30, 2016 at 3:28 pm #1197791
JadeModeratorHi there,
Yes, kindly provide us with the admin details. You can use any temporary email for the test user then provide us with the credentials.
Thank you.
September 30, 2016 at 8:22 pm #1198037
OscarParticipantThis reply has been marked as private.September 30, 2016 at 11:40 pm #1198224
RadModeratorHi there,
How about just changing the text through Woocommerce filter? Example add this code to your child theme’s functions.php
function custom_woocommerce_product_add_to_cart_text() { global $product; $product_type = $product->product_type; switch ( $product_type ) { case 'external': return __( 'Buy product', 'woocommerce' ); break; case 'grouped': return __( 'View products', 'woocommerce' ); break; case 'simple': return __( 'Inscrever-se', 'woocommerce' ); break; case 'variable': return __( 'Select options', 'woocommerce' ); break; default: return __( 'Read more', 'woocommerce' ); } } add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' );Then hide the icon like
.woocommerce .button.product_type_simple:before, .woocommerce .button.single_add_to_cart_button:before, .woocommerce-page .button.product_type_simple:before, .woocommerce-page .button.single_add_to_cart_button:before { display: none; }Hope this helps.
October 2, 2016 at 3:02 pm #1199575
OscarParticipantHello!
Thanks, worked perfectly for the product list. In the single product continues the original text of woocommerce (in Portuguese).
October 2, 2016 at 8:18 pm #1199877
Paul RModeratorHi,
You can add this in your child theme’s functions.php file.
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 + function woo_custom_cart_button_text() { if( x_is_product() ){ return __( 'My Button Text', 'woocommerce' ); } }Change My Button Text with your test.
Hope that helps
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1195157 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
