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.
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 ?
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 .
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)
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,
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 ?
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?