SOLVED: Translating with WPML, short code elements not working on bricks templates

Hi, I’d like to report a weird bug that I can’t quite figure out — and I’m hoping someone can point me to a fix. I’m building a multilingual site using bricks along with these plugins:

  1. Nextgen Gallery Pro

  2. WPML

Here’s the thing:

When I place a shortcode element that loads a Nextgen gallery (for example:
[ngg src="galleries" ids="1" display="basic_thumbnail" thumbnail_crop="0"])
onto a regular bricks PAGE:

a) Main language → Gallery shows up just fine
b) Translated version → Gallery also shows up just fine

But…

When I put the same shortcode element into a bricks TEMPLATE:

a) Main language → Gallery renders normally
b) Translated version → Nothing. No gallery at all.

All pages and templates are fully translated in WPML, and the shortcode is exactly the same in every language.

So… am I missing something obvious? What am I doing wrong?

Hi @MLD ,

Kindly send the website admin credentials and that page URL to help@bricksbuilder.io and include this forum thread URL as a reference. (Best if it’s a staging site so we can debug directly)

Regards,

Jenn

Hi Jenn,

thank you for your reply. Meanwhile I spent some more time with investigation and found a workaround for this issue.

This issue is related to dynamic data from a product custom field (attribute) that I placed inside a bricks-shortcode-element, to render a special gallery per product category. The short code was rendered only in the main language, not in the translation, although identical shortcode was inserted in any language (I checked that with an extra text field).

Now I changed the template and added the gallery-shortcodes directly multiple times, using bricks-conditions to select the adequate gallery. It works as expected in any language. I’m sorry but the affected template doesn’t exist anymore.

What can I do to help you?

Best regards – Markus

Let’s move on, and you can let us know if you encounter the same issue again.