polylang

<br> link break code not working in function.php (Polylang)

∥☆過路亽.° 提交于 2020-06-17 12:58:01
问题 Here is the update of my code and I still can't add link break with the provided solution. Check out code below. function gift_sender( $cart_item, $cart_item_key ) { $gsender = isset( $cart_item['gsender'] ) ? $cart_item['gsender'] : ''; $gift_label_string = pll_e('Gift Receiver:'); printf( '<br><div><label>%s</label> <textarea class="%s" id="cart_notes_%s" data-cart-id="%s">%s</textarea></div>', 'prefix-cart-notes', $cart_item_key, $cart_item_key, $gsender ); } add_action( 'woocommerce_after

woocommerce category translation

我是研究僧i 提交于 2020-01-04 08:21:52
问题 I'm trying to create a web shop with WooCommerce and Polylang. When I click the '+' icon in a product category in order to translate it into French, I'm routed to a 'new category' form. After I created the 'book' category in French ('libre'), I see that the 'book' category contains 8 items, while the 'libre' category contains zero. Is it a known issue that the relations between items get 'lost in translation' in Polylang / WooCommerce? Should I try another webshop implementation if I want an

Polylang: How to translate custom strings?

杀马特。学长 韩版系。学妹 提交于 2019-12-21 04:39:45
问题 My problem : I'm translating my website using Polylang but I'm having a hard time with custom strings translation. The strings won't show up in the "Strings translation" menu in the WP dashboard. Important: I don't know much about PHP so the pll_register_string function is very confusing for me. Quoted from the Polylang doc: https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/ pll_register_string Allows plugins to add their own strings in the “strings

Polylang: How to translate custom strings?

自古美人都是妖i 提交于 2019-12-03 15:48:33
My problem : I'm translating my website using Polylang but I'm having a hard time with custom strings translation. The strings won't show up in the "Strings translation" menu in the WP dashboard. Important: I don't know much about PHP so the pll_register_string function is very confusing for me. Quoted from the Polylang doc: https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/ pll_register_string Allows plugins to add their own strings in the “strings translation” panel. The function must be called on admin side (the functions.php file is OK for themes

WP PolyLang only translates WooCommerce partially

偶尔善良 提交于 2019-12-01 10:16:19
问题 I have created an account page for WooCommerce ([woocommerce_my_account]) and I have PolyLang installed. When I switch from english to another language, it only translates some of the strings - Sign out, Profile settings and Orders. The other remain in english - Dashboard, Downloads, Addresses, etc., even though they are in the same list. I've checked the woocommerce po files for missing translations, but they all seem to be intact. Any help would be appreciated. 回答1: You can't translate

WordPress Change logo image when I click to a different language

一曲冷凌霜 提交于 2019-11-30 20:53:58
I have a multilingual website. Is there a way I can change the logo.png to a different .png after I switch to "India"? I am using polylang plugin at this moment. I tried this solution but it did not work - https://support.pojo.me/docs/polylang-change-logo-every-language/ . Does any one know how to fix this issue? my code function pojo_polylang_get_multilang_logo( $value ) { if ( function_exists( 'pll_current_language' ) ) { $logos = array( 'en' => 'logo-en.png', 'in' => 'logo-in.png', ); $default_logo = $logos['en']; $current_lang = pll_current_language(); $assets_url = get_stylesheet

WordPress Change logo image when I click to a different language

ぃ、小莉子 提交于 2019-11-29 19:22:27
问题 I have a multilingual website. Is there a way I can change the logo.png to a different .png after I switch to "India"? I am using polylang plugin at this moment. I tried this solution but it did not work - https://support.pojo.me/docs/polylang-change-logo-every-language/. Does any one know how to fix this issue? my code function pojo_polylang_get_multilang_logo( $value ) { if ( function_exists( 'pll_current_language' ) ) { $logos = array( 'en' => 'logo-en.png', 'in' => 'logo-in.png', );