Tagged: x
-
AuthorPosts
-
August 22, 2016 at 2:08 am #1141063
QuantumParticipantHi,
I have hunted around for a while but cant seem to find a straightforward answer on how to do this:
I have edited some words in the woo-commerce language file and when overriding the default files it works fine. However i would like to put them in the child theme so when woo-commerce updated it doesn’t get overridden. How do i do this?
I have taken these files: wp-content/languages/plugins/woocommerce-en_AU.mo (and the .po) and put them in here: wp-content/themes/x-child/languages/woocommerce-en_AU.mo.
It isn’t working so what do i need to do?August 22, 2016 at 2:23 am #1141080
ChristopherModeratorHi there,
Please check this thread : https://community.theme.co/forums/topic/woocommerce-translation/#post-371084
Hope it helps.
August 22, 2016 at 4:23 am #1141174
QuantumParticipantThanks but that is only for the main language files. I only need the woocommerce files with different wording so what is the straightforward way to do this?
Surely there is a way to tell x theme to read woocommerce from the wp-content/themes/x-child/languages/woocommerce-en_AU.mo. file?August 22, 2016 at 6:25 am #1141310
RadModeratorHi there,
X theme templates use __x__ text domain. If you wish to enable Woocommerce textdomain then you’ll have to change them directly within the templates.
1. Copy this folder /x/woocommerce/ to your child theme (eg. /x-child/woocommerce/)
2. Edit all files within folder and replace all instances of __x__ to woocommerce
Example
__( 'string', '__x__' )to__( 'string', 'woocommerce' )3. You may need to edit x\framework\functions\global\plugins\woocommerce.php as well and replace textdomain when needed.
Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1141063 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
