Streaming live at 10am (PST)

Conditional partial components?

I’m trying to create partial components in my site and I want to display them on a page based on some conditions. For example, if the language selected is ‘en’ (en.mysite.com/home) then a home page will show me a section with an image. If the selected language is ‘fr’ (fr.mysite.com/home) then in the section will be displayed only text I’ve tried to use conditional visibility but failed to resolve it.
Anything you can suggest to me?

You’re probably looking for something like this:

The principles are going to be the same. You only need to adjust it to be able to see what is the current language and then your functions need to hide/show determined elements

2 Likes