1. RaSchDMD
  2. SP Page Builder 2.x (not supported version)
  3. Sunday, 03 September 2017
Hello admins and users,

I struggled with the language problem, when I wanna work with one SP Page Builder-site with different languages.

First of all I want to request the SP Page Builder programmer, if it is possible to give every addon a language tag, so we can build a page with many languages at once. And we need a fallback, when something is not translated, that the basic language content is displayed.

My solution is:

1. Give the body the language tag:

- <body lang="<?php echo $this->language; ?>">

2. Give every multilanguage addon a additional class:

- language lang-en (e.g. for english)

3. Go in your css and set a new rule:

- body:lang(en-gb) .sppb-addon.language:not(.lang-en) {display:none;}

The best solution is to programm it globally for every addon. So we would have a single multilanguage site and on need to build different sites for every language.

Thanx in advance.

Accepted Answer
Accepted Answer Pending Moderation
ad 1) I am pretty sure that language prefix class, for example, en-gb is added is body.
ad 2) We can consider it, sure.
Attachments (1)
Responses (9)
Accepted Answer Pending Moderation
ad 2) Right now you have to add lang tag for each addon or row manually.
Accepted Answer Pending Moderation
That’s pretty cool, Paul.

Accepted Answer Pending Moderation
Hey Paul,

can you give us a example, what we have to insert in the css class.

Accepted Answer Pending Moderation
It depends on you what you want to get
Accepted Answer Pending Moderation

I have to enter some css string in a row or a addon like this:




or what ever?
Accepted Answer Pending Moderation
So that is no solution:

we have to have a query in php:

if class "de-de" {display: that};
if calss "en-gb" {display: that};

Did you solve it?
Accepted Answer Pending Moderation
I talked with developer, right now no plans for it.
So you have to add class names manually for each Row.
Accepted Answer Pending Moderation
Checkout my solution here as well The most easy way to build Multi Langauge SPPB Site

There are no replies made for this post yet.
Be one of the first to reply to this post!

This forum is archived

This forum has been archived. Please use JoomShaper official support system.