Skip Navigation

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

Problem:
If you're experiencing issues with the language switcher not rendering content on a Bricks Builder Landing page, while other templates and pages translate fine, and you've noticed that the header and footer are translated correctly, this summary is for you. The client found that the language switcher worked on individual templates but not on the landing page, despite setting conditions for the templates to display based on the selected language.

Solution:
We recommend the following steps:
1. Edit the home page using Bricks and add a header element.
2. Update the page.
3. Translate the page using your translation management system.
4. Check if the translated pages show the translated header and template.

If you've followed these steps and the content is still not rendering correctly, or if this solution doesn't seem relevant to your issue, please open a new support ticket with us, and we'll be happy to help.

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

Last updated by kalleV-3 12 months ago.

Assisted by: Osama Mersal.

Author Posts
December 27, 2023 at 1:46 pm #15132220

kalleV-3

Hey,
I'm having another issue on Staging site using translations with Bricks Builder Landing page.
Other templates and pages work fine when selecting different languages but only on the landing page (I've included 2 templates there) the language switcher doesn't render the content. It's just blank. No errors in the console. No log errors that I found from debug.
Header/Footer are translated... also when checking the templates individually, the language switcher works. For templates I've added conditions to be displayed on entire website and on landing page I'm displaying those templates based on selected language.
Should I open another ticket for it ?

After playing around and trying different options I found a solution was to Select Different Language from Admin Dashboard header.
Only there, I could open up the Front Landing page for the specific language and then I had to insert the wanted template in the editor and find the correct template language reference…

This is confusing because this action wasn’t required for other pages. Those were automatically translated and selected in whatever language I switched to (also had templates included).

The question is why did Bricks or WPML create different language translations and pages for other pages(and templates included) and not for the front landing page ?

Regards,
A

December 27, 2023 at 2:01 pm #15132291

Osama Mersal
Supporter

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

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

Hi,

Here is the sandbox site. (hidden link)

Please install the Bricks, create a landing page, and translate it to replicate the issue.

If the issue is replicable, please let me know how to reproduce it.

Thanks for your cooperation

Best regards,
Osama

December 27, 2023 at 2:47 pm #15132490

kalleV-3

Hey Osama,
So I've replicated the issue.
When you open up hidden link and change language, it does not display translated content from translated template.
But opening up the template hidden link and changing the language, you see the translations are there .
Now, I didn't setup other pages, but on other pages I got the translated content back and it generated the content right away without having to change Admin Dashboard language and edit the other pages content .

December 27, 2023 at 2:56 pm #15132505

Osama Mersal
Supporter

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

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

Hi,

Thanks for replicating the issue. Please edit the translated page using Bricks and select the translated template. (Kindly check the attached screenshot)

Please check the translated page and let me know if it works correctly. (hidden link)

Best regards,
Osama

December 28, 2023 at 8:24 am #15133796

kalleV-3

Hey,
I don't see the screenshot.

Yeah it works, but what did you do differently ? Or did you also act the way I described by opening up each individual language page and selecting the respective language template ?
Regards,

December 28, 2023 at 9:33 am #15133971

Osama Mersal
Supporter

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

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

Hi,

I edited the home page using Bricks, added a header element, and updated it.

After that, I translated the page. The translated pages showed the translated header and template.

Best regards,
Osama

December 29, 2023 at 8:34 am #15136060

kalleV-3

Hi,
So the issue is when we don't have any other elements other than "template" on the page, it doesn't know how to generate and display pages with translated templates?
We need at least a single string element inside the page ?

Can I add a header , translate it and then hide it ? Does that also work ?

December 29, 2023 at 10:40 am #15136358

Osama Mersal
Supporter

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

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

Hi,

I didn't test adding a widget and hiding it. Please test that on the sandbox site and let me know if that fixes the issue.

Best regards,
Osama

December 29, 2023 at 10:57 am #15136406

kalleV-3

Hey, I tested it out without hiding the heading first.
Steps:
1. added heading for base language
2. sent and finished translation jobs in Crowdin
3. set display: none to the heading
4. It works without having to generate the translation manually.

So the issue is as I described, not being able to render translated templates on page if no other translations are present on the page.
Is this the issue on Bricks Builder side?

December 29, 2023 at 11:06 am #15136454

Osama Mersal
Supporter

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

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

Hi,

Thanks for your update. Please consult the Bricks support team and let us know their findings.

As a workaround, please add a heading or text widget, hide it, and translate the page.

Best regards,
Osama

January 11, 2024 at 11:24 am #15173753

kalleV-3

They have confirmed it as a bug and it's WIP.