Tagged: x
-
AuthorPosts
-
January 5, 2017 at 6:46 am #1317241
artio01ParticipantHi guys,
Currently I have a problem regarding the translation of “the shop” title with WPML. I use the title also for the breadcrumb. WPML can not find the appropriate string. I use the integrity stack and I couldn’t find any solution on this forum. Can you help me with that?
Thank you,
IonutJanuary 5, 2017 at 8:32 am #1317356
DarshanaModeratorHi there,
Thanks for writing in! Please refer to the following thread (https://community.theme.co/forums/topic/translation-shop-title-with-wpml/).
Hope that helps.
January 5, 2017 at 8:40 am #1317359
artio01ParticipantI’ve checked that thread but in woocommerce.php of Integrity I don’t have a <h1 class=”entry-title”> line.
Thanks,
IonutJanuary 5, 2017 at 1:48 pm #1317737
Nabeel AModeratorHi Ionut,
Can you please provide the URL of your site so we can take a look at your current setup?
Thanks!
January 6, 2017 at 1:48 am #1318510
artio01ParticipantThis reply has been marked as private.January 6, 2017 at 2:27 am #1318531
Rue NelModeratorHello There,
Thanks for providing the url of the sites. You can manually add the Shop text for both the title and breadcrumb. Simply please insert this following code in your child theme’s functions.php file since you already have your child theme active and ready.
// Translate "Shop" // ============================================================================= add_filter('gettext', 'translate_shop_text' ); function translate_shop_text($translated) { $translated = str_ireplace('Shop', 'your translation', $translated); return $translated; } // =============================================================================Please let us know if this works out for you.
January 6, 2017 at 5:23 am #1318699
artio01ParticipantHello,
Unfortunately this code doesn’t work, at least for Integrity stack and I’m not using any caching plugin. Anyway, is there any possibility to use WPML for this?
Thanks,
IonutJanuary 6, 2017 at 5:58 pm #1319486
Rue NelModeratorHello There,
Thanks for updating in! 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 / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
January 7, 2017 at 5:39 am #1320034
artio01ParticipantThis reply has been marked as private.January 7, 2017 at 3:17 pm #1320485
RadModeratorHi there,
It’s not translatable since it’s saved on the database, the only translatable strings are the static one. Please add this code to your child theme’s functions.php
add_filter('x_option_x_integrity_shop_title', 'translate_shop_title'); function translate_shop_title ( $title ) { switch( ICL_LANGUAGE_CODE ) { case "fr": $title = 'Magazin'; break; default: $title = 'Shop'; break; } return $title; }Hope this helps.
January 8, 2017 at 6:31 am #1321014
artio01ParticipantHello,
The new code is working.
Thanks,
IonutJanuary 8, 2017 at 6:58 am #1321034
ChristianModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1317241 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
