Home › Forums › WoodMart support forum › Change the text in the "Buy button" Any CSS?
Change the text in the "Buy button" Any CSS?
- This topic has 11 replies, 3 voices, and was last updated 4 years, 9 months ago by
Elise Noromit.
-
AuthorPosts
-
May 10, 2020 at 1:53 am #193777
Element_Earth_CBDParticipantJust wondering, it would be nice to change it to something better inline with the products. Thank you for any help.
James
Attachments:
You must be logged in to view attached files.May 10, 2020 at 2:54 am #193784
emsaygroupParticipantHow exactly do you want to make a change? Will there be a variable text for each product or category, or a fixed text? You can make changes yourself using the sample filter below.
add_filter( 'woocommerce_product_add_to_cart_text', 'custom_add_to_cart_text', 10, 1 ); function custom_add_to_cart_text( $text ) { $text = __( 'Example', 'woocommerce' ); return $text; }
You can use the function file of your child theme to add this code. If you are not sure how to do it, I recommend not using it.
May 10, 2020 at 3:39 am #193787
Element_Earth_CBDParticipantYes, like I want to be able to say something different!
Use that CSS code or is there another one for when the product
JamesMay 10, 2020 at 12:53 pm #193844
Elise NoromitMemberHello,
Please clarify the purpose: when you hover the product how it should look like? What should be different?
Best Regards
May 10, 2020 at 1:57 pm #193855
Element_Earth_CBDParticipantInstead of BUY NOW it can be EXPLORE or SEE MORE, when your products are not cheap it looks too hasty to have the buy now button on somethings.
Possible?
James
May 10, 2020 at 10:20 pm #193917
Elise NoromitMemberHello,
You can rewrite the button, but it would be applied to all the products no depending on its type of price. Woocommerce does not provide the option to set different buttons.
Best Regards
May 10, 2020 at 11:34 pm #193930
Element_Earth_CBDParticipantOk, how?
James
May 11, 2020 at 8:35 am #194013
Elise NoromitMemberHello,
You can rewrite all theme and plugin texts via PO file in WordPress. Here is a video tutorial that should help you rewrite your website texts with a Loco Translate plugin https://www.youtube.com/watch?v=D3NsDdMzsls&list=PLMw6W4rAaOgKKv0oexGHzpWBg1imvrval&index=3
Best Regards
May 12, 2020 at 3:26 pm #194412
Element_Earth_CBDParticipantThank you, it looks difficult, but its easy? I dont want to mess up everything on site.
James
May 12, 2020 at 8:14 pm #194448
Elise NoromitMemberHello,
You can rewrite all the text and then delete the plugin, nothing would be messed. It is not difficult at all.
We suggest you to keep translated files in wp-content/languages/themes/woodmart-pt_PT.po folder.Best Regards
May 12, 2020 at 8:21 pm #194456
Element_Earth_CBDParticipant🙁 How to make sure the files stay in here?
wp-content/languages/themes/woodmart-pt_PT.po folder
May 13, 2020 at 9:01 am #194571
Elise NoromitMember -
AuthorPosts
Tagged: Button Names
- You must be logged in to create new topics. Login / Register