Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem

The client reported that after changing the slider type from Nectar Slider to \"Basic Slider\", the images displayed correctly in both English and French pages. However, the Salient Blocks for the Slider were missing from the French translation's backend, even though the slides were functioning correctly with the Basic Slider. The client was concerned about the differences in blocks shown between the English page and the French translation, particularly the missing Image Gallery block.

Solution

We recommended adding custom XML configuration to the WPML settings to ensure compatibility with the Nectar Slider. Here are the steps to follow:

<wpml-config>
  <shortcodes>
        <shortcode>
            <tag>vc_gallery</tag>
            <attributes>
                <attribute encoding="allow_html_tags">title</attribute>
        <attribute encoding="vc_safe">custom_links</attribute>
        <attribute type="media-ids">images</attribute>
        <attribute encoding="base64">items</attribute>
      </attributes>
    </shortcode>    
  </shortcodes>
</wpml-config>

After adding the code, make a change on the page in question and update the translation.

For more information:

https://wpml.org/documentation/translating-your-contents/page-builders/how-to-register-page-builder-modules-and-theme-options/#registering-shortcodes

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.

Tagged: 

This topic contains 17 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 2 months ago.

Assisted by: Christopher Amirian.

Author Posts
November 1, 2023 at 3:33 pm #14708853

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Yes you can do that. You will add the additional blocks to the original language. Then save the page.

After that you will click to go to the Advanced Translation Editor and there you will see the additional content text, you will complete the translation and the changes will also reflect in the translated language.

Thanks,

November 10, 2023 at 2:02 am #14771867

Seraphim

I may be still having problems with Media Translation. I'll test tomorrow (Friday, November 10th) and get back to you.

November 11, 2023 at 2:36 pm #14782203

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

If the issue is related to the Image Gallery, the Salient theme released an update with a fix.

But if it is something other than that I'd appreciate it if you can open up a separate ticket.

Thanks.