Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by jensR-11 10 hours, 10 minutes ago.

Assisted by: Christopher Amirian.

Author Posts
November 5, 2024 at 10:32 am

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.

November 5, 2024 at 11:32 am
November 5, 2024 at 11:33 am #16366080

jensR-11

You should have the theme...

November 5, 2024 at 12:59 pm #16366799

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.

November 5, 2024 at 1:25 pm #16366929

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.

November 5, 2024 at 1:47 pm #16367033

jensR-11

plz. be careful. benite from the theme team is already working on it. Background image seams to be fixed.