Mix up with child-theme
-
Hi,(sorry for my english)
I try since two days to change all my configurations to make loco work but i dont find my error. There is no translation that appear. I have a child thème “maxstore-child” and the parent thème “maxstore”. Both are visible in loco so i dont know if there is a conflict in the database. I tried to delete ” maxstore bundle” but i dosent work, it still reapear.
I dont know much about back-end fonctions and thing like that… I added :
/ Load translation files from your child theme instead of the parent theme
function my_child_theme_locale() {
load_child_theme_textdomain( ‘maxstore-child’, get_stylesheet_directory() . ‘/languages’ );
}
add_action( ‘after_setup_theme’, ‘my_child_theme_locale’ );And change in loco.XML
<?xml version=”1.0″ encoding=”utf-8″?>
<bundle>
<domain name=”maxstore”>
<project>
<!– As above –>
</project>
</domain>
<domain name=”maxstore-child”>
<project name=”” slug=””>
<source>
<directory>wp-content/themes/maxstore-child/languages</directory>
<exclude>
<file>lib/src/admin.php</file>
</exclude>
</source>
<target>
<directory>lib/i18n</directory>
</target>
<template>
<file>maxstore.pot</file>
</template>
</project>
<project name=”” slug=”admin”>
<source>
<directory>wp-content/themes/maxstore-child/languages</directory>
</source>
<target>
<directory>wp-content/themes/maxstore-child/languages</directory>
</target>
<template>
<file>maxstore.pot</file>
</template>
</project>
</domain>
</bundle>The loco page say ” unconfigure bundle” for my maxstore-child bundle. I want to save my .po and .mo in my maxstore-child/languages. I dont know what to do? I am mix up.. Thanks!
- The topic ‘Mix up with child-theme’ is closed to new replies.