This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues where not all strings are appearing in the Strings Translation, and specific elements like the hamburger menu in the main navigation remain untranslated, this might be due to the header template not being translated.
Solution:
First, ensure that the header template is translated. You can do this by accessing the header template in your admin panel and translating it. Here is a general guide on how to translate templates: Translating Your Contents.
If the issue persists, we have implemented a custom code workaround. Add the following code to your functions.php file:
add_filter( 'redux/options/kiddino_opt/option_value/kiddino_header_select_options', 'kiddino_translate_header_template_id' );<br /><br />function kiddino_translate_header_template_id( $value ) {<br /> if ( is_admin() ) {<br /> return $value;<br /> }<br /><br /> if ( ! empty( $value ) ) {<br /> $translated_id = apply_filters( 'wpml_object_id', $value, 'elementor_library', true );<br /><br /> if ( ! empty( $translated_id ) ) {<br /> return $translated_id;<br /> }<br /> }<br /><br /> return $value;<br />}<br /><br />add_action( 'wp', 'kiddino_fix_page_header_template_id' );<br /><br />function kiddino_fix_page_header_template_id() {<br /> if ( is_admin() ) {<br /> return;<br /> }<br /><br /> if ( ! is_singular() ) {<br /> return;<br /> }<br /><br /> $post_id = get_queried_object_id();<br /><br /> if ( empty( $post_id ) ) {<br /> return;<br /> }<br /><br /> $settings = get_post_meta( $post_id, '_elementor_page_settings', true );<br /><br /> if ( empty( $settings ) || ! is_array( $settings ) ) {<br /> return;<br /> }<br /><br /> if ( ! empty( $settings['kiddino_header_builder_option'] ) ) {<br /> $translated_id = apply_filters( 'wpml_object_id', $settings['kiddino_header_builder_option'], 'elementor_library', true );<br /><br /> if ( ! empty( $translated_id ) && $translated_id != $settings['kiddino_header_builder_option'] ) {<br /> $settings['kiddino_header_builder_option'] = $translated_id;<br /> update_post_meta( $post_id, '_elementor_page_settings', $settings );<br /> }<br /> }<br />}After adding the code, open the translated header template in Elementor and set the correct off-canvas (sidebar) template. This adjustment is necessary for each translated template.
Please note that this solution might become irrelevant due to updates or may not apply to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic is split from https://wpml.org/forums/topic/configuration-3/
This topic contains 26 replies, has 0 voices.
Last updated by 2 weeks, 1 day ago.
Assisted by: Dražen.





