jensR-11
Background of the issue:
I am trying to perform media translation on my site using WPML. The site I need help with is hidden link .
Symptoms:
WPML is not working with a certified theme.
Questions:
its not working.
jensR-11
You should have the theme...
Christopher Amirian
Supporter
Languages:
English (English )
Timezone:
Asia/Yerevan (GMT+04:00)
Hi,
The problem is reported to the compatibility team. I reported the inner column background translation matter first to see if there can be a solution.
I will get back to you as soon as I have an answer.
Thanks.
Christopher Amirian
Supporter
Languages:
English (English )
Timezone:
Asia/Yerevan (GMT+04:00)
Hi,
Please add the code below to the functions.php file of your theme:
function custom_remove_home_url_filter_on_cmb2_admin_init_for_rm_giapi() {
if ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_POST['action'] ) && $_POST['action'] === 'rm_giapi' ) {
global $wp_filter;
if ( isset( $wp_filter['home_url']->callbacks[-10] ) ) {
foreach ( $wp_filter['home_url']->callbacks[-10] as $key => $value ) {
if ( str_contains( $key, 'home_url_filter' ) ) {
remove_filter( 'home_url', $key, -10 );
}
}
}
}
}
add_action( 'cmb2_admin_init', 'custom_remove_home_url_filter_on_cmb2_admin_init_for_rm_giapi' );
That should fix the issue. Thanks.
jensR-11
plz. be careful. benite from the theme team is already working on it. Background image seams to be fixed.
Christopher Amirian
Supporter
Languages:
English (English )
Timezone:
Asia/Yerevan (GMT+04:00)
Hi,
Our team also works on the background image. To avoid duplication, may I ask what did they do? So I can report to our team?
Thanks.
Christopher Amirian
Supporter
Languages:
English (English )
Timezone:
Asia/Yerevan (GMT+04:00)
Hi,
Our team came up with a workaround for the background image problem.
Adding the code below to WordPress Dashboard > WPML > Settings > Custom XML (tab)
<wpml-config>
<shortcodes>
<shortcode>
<tag>vc_column</tag>
<attributes>
<attribute type="media-ids">back_image</attribute>
</attributes>
</shortcode>
<shortcode>
<tag>vc_column_inner</tag>
<attributes>
<attribute type="media-ids">back_image</attribute>
</attributes>
</shortcode>
</shortcodes>
</wpml-config>
Doing a small change on the page in the original language and making sure the translation is 100% complete should do the trick and enable the translation of the background images via WPML > media menu.
I followed the steps above on your website and now the background images show translated:
hidden link
Thanks.