Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Does multi-language support the menu items? And how about separate mastheads.
Just asking.
Offline
yes on menu items, no on masthead images (as far as I know--there may be a phplugins way of feeding an image based on user choice of language). But if you use text in the masthead (company name and tagline), then yes.
For menu items, you'll need to edit the menu set and add the multi language html.
I've not tested the language code in album and album set titles to know if those fields can take the code so that gallery submenu items will be translated.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
This is a fairly straightforward site: the Home page shows thumbnails that are buttons that lead to video clips. All the data will be written in both languages using the method suggested earlier.
As for the menu items, I still have to discover where to edit these.
As for the button, I succeeded in placing on the left and changing the "Fr" by "Français". But now I'm wondering about that globe icon. Not sure everyone will "get it". Looking for another icon or a way to have some kind of indicator to switch language.
For the masthead, I'll just design a bilingual one, until I find a way to have separate Mastheads, switchable.
As Walter Cronkite used to say: "that's the way it is", for now.
Offline
Edit your main menu items in the Menu Set
Albums and albums sets that automatically appear beneath the Galleries item (descendants) cannot be edited. You could instead create the lower levels manually.
You can change the globe icon with custom css. Either swapping it for another icon or using text.
You could use a text based masthead with the tagline like I've done on my demo page. These can be styled separately with custom css.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
You can change the globe icon with custom css. Either swapping it for another icon or using text.
it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....
Agustin
Offline
rod barbee wrote:You can change the globe icon with custom css. Either swapping it for another icon or using text.
it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....
Agustin
Yes, a few lines of CSS code can do this. Please have a look at: http://lab.danielleu.com/blog/customizi … -selector/
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
aebolzan wrote:rod barbee wrote:You can change the globe icon with custom css. Either swapping it for another icon or using text.
it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....
Agustin
Yes, a few lines of CSS code can do this. Please have a look at: http://lab.danielleu.com/blog/customizi … -selector/
Nice!
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Daniel Leu wrote:aebolzan wrote:it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....
Agustin
Yes, a few lines of CSS code can do this. Please have a look at: http://lab.danielleu.com/blog/customizi … -selector/
Nice!
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Daniel,
I have no knowledge about CSS, but I copied and pasted your code into my custom.css file and nothing happened...the Home page shows as usual...maybe I did not understand what to do with your code...
Agustin
P.D. this is what my css file contains:
.nav.nav_h ul.primary-menu ul.sub-menu {
width: 400px;
/* Language switching */
html .fa-globe:before{
font-family: Arial;
font-weight: 700;
font-size: 0.875em;
}
html[lang="es"].fa-globe:before{
content: "ES";
}
html[lang="en"].fa-globe:before{
content: "EN";
}
#language-selector ul {
width: 75px;
}
Last edited by aebolzan (2020-05-14 10:18:34)
Offline
I’ll be moving this into Backlight 3 Customisation
Offline
Daniel,
I have no knowledge about CSS, but I copied and pasted your code into my custom.css file and nothing happened...the Home page shows as usual...maybe I did not understand what to do with your code...
Agustin
P.D. this is what my css file contains:
.nav.nav_h ul.primary-menu ul.sub-menu {
width: 400px;/* Language switching */
html .fa-globe:before{
font-family: Arial;
font-weight: 700;
font-size: 0.875em;
}html[lang="es"].fa-globe:before{
content: "ES";
}html[lang="en"].fa-globe:before{
content: "EN";
}
#language-selector ul {
width: 75px;
}
Do you have a link to your page?
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Your first statement is not closed. It should be
.nav.nav_h ul.primary-menu ul.sub-menu {
width: 400px;
}
Do you notice the closing bracket?
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
can you post a link to the site?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Rod suggested:
You could use a text-based masthead with the tagline as I've done on my demo page. These can be styled separately with custom css.
I am playing around with a graphic masthead + a tagline. Works fine. Just have to discover how to align them, probably with CSS.
There is a "twitch" when changing the language but it's no big deal, yet.
Last edited by pideja (2020-05-14 21:40:45)
Offline
I found in the Inspector that I can align the graphic masthead with the tagline with
div.masthead:nth-child(1) > div:nth-child(1) > a:nth-child(1) > h1:nth-child(1) > span:nth-child(1) > img:nth-child(1) {
padding-right: 0px;
margin-right: 0px;
right: 15px;
}
Is this usefull ? Is there a more CSS-like way to do this? If not, where do I put this code?
Offline
I’ve not probed it to see if there’s a better way.
But what you posted is css. So put it in your custom css file.
This is starting to get a bit off topic. If you need to go further with masthead customization, can you start a new topic?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Offline
Will do!
Offline
your custom css is not showing Daniel's code. Double check that you added it to your my-custom.css file and that you've uploaded it to the /backlight/custom/css/ folder
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Agustin,
I see that you've uploaded the css. There's a syntax error. You have:
html[lang="es"].fa-globe:before{
content: "ES";
}
html[lang="en"].fa-globe:before{
content: "EN";
}
There needs to be a space before .fa-globe. Change the code so it looks like this:
html[lang="es"] .fa-globe:before{
content: "ES";
}
html[lang="en"] .fa-globe:before{
content: "EN";
}
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
aebolzan wrote:
rod barbee wrote:
You can change the globe icon with custom css. Either swapping it for another icon or using text.it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....
and Daniel wrote:
Yes, a few lines of CSS code can do this. Please have a look at: http://lab.danielleu.com/blog/customizi … -selector/
Well, it works for me. Thanks, Daniel and Rod!
Offline
Although Daniel's CSS works fine on my site, the editor I am using warns me to not use "IDs in selectors" as in:
#language-selector ul {
width: 75px;
Why is this?
Offline
ignore that, it's nonsense.
The selector for that element is #language-selector, so that's what you need to use.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Agustin,
I see that you've uploaded the css. There's a syntax error. You have:
html[lang="es"].fa-globe:before{ content: "ES"; } html[lang="en"].fa-globe:before{ content: "EN"; }
There needs to be a space before .fa-globe. Change the code so it looks like this:
html[lang="es"] .fa-globe:before{ content: "ES"; } html[lang="en"] .fa-globe:before{ content: "EN"; }
still not working....any ideas?
Agustin
Offline