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?
Support
Solved by Natalia Bazilenco View solution
last edited 03/16/23 by Natalia Bazilenco
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
TXT
:lang(en) {font-family: Aileron}
:lang(ro) {font-family: NatoSans}
I completely forgot about this method. Thank you.
last edited 03/17/23 by Natalia Bazilenco
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 19 | 484 | 5 days ago | ||
| 2 | 99 | 7 days ago | ||
| 4 | 426 | 1 week ago | ||
| 4 | 377 | 3 weeks ago | ||
| 9 | 484 | 3 weeks ago |