Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #798108

    Hi there,

    This always happens whenever I update the Theme. I’ve amended the default Captcha text in a contact.php file in my child theme.
    I’ve also set my translated text in a lang folder in my Child Theme. But whenever I update Enfold, my translation always goes off and reverts back to English for some reason.

    I’ve used Loco Translate to amend the text again, but the translated text is not showing. Please refer to the link and the line Please kindly solve the equation to proceed.

    The following is my child theme functions.php

    <?php

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);
    function avia_include_shortcode_template($paths)
    {
    $template_url = get_stylesheet_directory();
    array_unshift($paths, $template_url.’/shortcodes/’);

    return $paths;
    }

    add_action(‘wp_footer’, ‘ava_custom_script’, 10);
    function ava_custom_script(){
    ?>
    <script>
    (function($){
    $(‘.avia_datepicker’).attr(‘readonly’,’readonly’);
    }(jQuery));
    </script>
    <?php
    }

    add_action(‘after_setup_theme’,’avia_remove_main_menu_flags’);
    function avia_remove_main_menu_flags(){
    remove_filter( ‘wp_nav_menu_items’, ‘avia_append_lang_flags’, 20, 2 );
    remove_filter( ‘avf_fallback_menu_items’, ‘avia_append_lang_flags’, 20, 2 );
    remove_action( ‘avia_meta_header’, ‘avia_wpml_language_switch’, 10);
    }

    require( ‘class-form-generator.php’ );

    function overwrite_language_file_child_theme() {
    $lang = get_stylesheet_directory().’/lang’;
    return $lang;
    }
    add_filter(‘ava_theme_textdomain_path’, ‘overwrite_language_file_child_theme’);

    Please help. I’m not sure why my translated text is not showing at all.

    • This topic was modified 7 years, 7 months ago by jasksks.
    #798187

    Ok no worries, have found my solution. For anyone who’s struggling with the same problem with Translations using Loco Translate Plugin, I clicked on Fuzzy to clear and retyped my translations again and it saved.

    #798231

    Hi,

    Great, glad you got it working and thanks for sharing your solution. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.