Maybe to implement the task (a different font for the menu) - a separate template with a class for menu items or can it display a different header based on the version of the site language?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Solved by Natalia Bazilenco View solution
I understand that I need to work through twig files, but I don’t fully understand how to reconnect them. Ok, I copied the file modular.html.twig and renamed it to modular.en.html.twig
In this file for navigation -li- I add some class and set the font-family through css styles.
But how now to connect all this to the English version of the site in order to display the menu with a new font-family?
You could just load additional CSS depending on language, which would override the default theme font
Thanks, great idea. I aded in my custom.css into child theme
:lang(en) {font-family: Aileron}
:lang(ro) {font-family: NatoSans}
I completely forgot about this method. Thank you.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 53 | 10 hours ago | ||
| 2 | 60 | 13 hours ago | ||
| 1 | 30 | 14 hours ago | ||
| 2 | 65 | 5 days ago | ||
| 2 | 56 | 5 days ago |