Support » Theme: Expound » My Child Theme's translation is not working

  • Resolved DJviolin


    Hi! I created this child theme: LINK

    But the translation is not working. 🙁 I followed WordPress Codex.

    Also the favicon is pointing my localhost’s server home directory.

    Thank You for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is the code:

    function expound_child_setup() {
    	 * Make theme available for translation
    	 * Translations can be filed in the /languages/ directory
    	 * If you're building a theme based on Mag, use a find and replace
    	 * to change 'expound' to the name of your theme in all the template files
    	load_child_theme_textdomain( 'expound-child', get_stylesheet_directory_uri() . '/languages' );
    add_action( 'after_setup_theme', 'expound_child_setup' );

    My upper link updated, favicon problem solved. But Hungarian translation files in expound-child/languages directory still don’t work, but works in original theme directory.

    I modified my child theme: LINK

    I included a javascript line (delete ‘#’ string from menu links), but seems like not responding. .js file presented in source code. Translation still not working. What’s wrong? WP related issue?

    It works with external child CSS:

    nav ul li a[href='#'] { pointer-events: none; cursor: default; }

    But not with externel child JS file:

    //$("nav ul li a[href='#']").removeAttr("href").css("cursor","pointer");

    Strange. I think it’s WP related.

    Theme Author Konstantin Kovshenin


    Hey there, I think child theme textdomains are for additional strings in the child theme. If you’d like to provide a translation for the original strings, your text domain should match, i.e. expound, not expound-child in load_child_theme_textdomain. Also, if you want to provide additional translation files without breaking the theme on updates, you can just put them in wp-content/languages/themes/expound and it should all just magically work 🙂

    Hope that helps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘My Child Theme's translation is not working’ is closed to new replies.