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.

This topic contains 1 reply, has 0 voices.

Last updated by mickaelG-6 3 months, 2 weeks ago.

Assisted by: Osama Mersal.

Author Posts
March 17, 2025 at 1:54 pm #16825461

mickaelG-6

Background of the issue:
I am trying to translate a page that, inside the Betheme bloc editor, contains a Leaflet map through quite a lot of shortcode. I want to exclude this string from the translation table because it exceeds the maximum size possible. I already tried to use: <code><div translate="no"> [leaflet_map id="your-map-id"] </div></code> and <code><?xml version="1.0" encoding="UTF-8"?> <wpml-config> <shortcodes> <shortcode name="leaflet-map"> <ignore /> </shortcode> <shortcode name="leaflet_map"> <ignore /> </shortcode> </shortcodes> </wpml-config></code> and even passing the shortcodes inside the default WordPress content editor and not Betheme. Nothing works. Link to a page where the issue can be seen: hidden link

Symptoms:
I am unable to translate a page with a long shortcode for a Leaflet map, and attempts to exclude it from the translation table have failed.

Questions:
How can I exclude a long shortcode from the translation table?
Why are my attempts to exclude the shortcode not working?

March 19, 2025 at 7:16 am #16833357

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

Please log in to this hidden link">sandbox site and try to replicate the issue. If it is replicable, please let me know how to reproduce it so I can check it and consult our second-tier support team.

Best regards,
Osama

March 19, 2025 at 8:13 am #16833686

mickaelG-6

The problem was coming from my theme editor. Passing a long shortcode in the WP editor content directly made it works! Thanks for the help.