CarlVarsh
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Change text button “add to cart” able to translationHi guys, I’m so happy because I find the solution
function nlwc_custom_button_text() { return esc_html__('Show more ', 'theme'); }Now is translatable!:)
Forum: Plugins
In reply to: [WooCommerce] Change text button “add to cart” able to translationHi @slash1andy if I insert _e instead of __ now the term is translatable, but I have a bug because in the output code the word is separated from the button.
function nlwc_custom_button_text() { return _e('Show more ', 'theme'); }I have a screenshot about it, but I don’t find how I can post it.
- This reply was modified 5 years, 7 months ago by CarlVarsh.
Forum: Plugins
In reply to: [WooCommerce] Change text button “add to cart” able to translationHi @stuartduff , yes there is a reason because for now, I want to build a fake eCommerce.
Are you sure I’ll able to translate this button with Loco Translate(I want to buy Polylang Pro to translate all the site)?
Thanks for the comment:)
CarloForum: Plugins
In reply to: [WooCommerce] Change text button “add to cart” able to translationOk thanks for the links!
Just a recap there was a little error in my text, this is the code I tried:
<?php e_(‘Aggiungi’, ‘theme’); ?>Forum: Developing with WordPress
In reply to: change text button add to cartList able to translationYes, you are right, I didn’t understand, thanks!
Forum: Developing with WordPress
In reply to: change text button add to cartList able to translationHi Steven,
I don’use a plugin for now, I am trying a custom solution.
Thanks for the answer
Carlo
Forum: Plugins
In reply to: [Site Reviews] Reviews displayedHi,
thanks for the advice, I’ve improved the cache system and now all works fine.