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.
|