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?
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.
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.