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 6 replies, has 2 voices.

Last updated by Christopher Amirian 3 weeks 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.

November 6, 2024 at 1:36 pm #16372014

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.

November 7, 2024 at 8:15 am #16375503

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.

The topic ‘[Closed] Certified theme but wpml is not working’ is closed to new replies.