Kunena Menu
Custom.css only works for one language
- MartinAlgarve
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
6 years 6 months ago #56456
by MartinAlgarve
Custom.css only works for one language was created by MartinAlgarve
We have a multilingual site, EN/DE/PT, and I want to change the old menu module (IceMegaMenu) to MaxiMenuCK. I started with the English version (algarveoutdoors.com/index.php/en)
As I wanted it to look as close as possible to the old version, I decided to edit in the custom.css file rather than using the control panel. I have made extensive use of the inspector of Firefox to help me and am working on a development site.
I then made a copy of the MaxiMenu module for English to change "assignments" and "menu to render" to the German setting. To my surprise the elements of the German menu just do not seem to be exposed to custom.css, have a look here: algarveoutdoors.com/index.php/de/ , or use the flag for changing language.
The custom.css file is read in both languages as for example the placement of the flags is controlled by this and works in both languages.
I just checked, and the Portuguese menu behaves just like the German.
Any clue?
Martin
The old live site can be seen here: casaflordesal.com
As I wanted it to look as close as possible to the old version, I decided to edit in the custom.css file rather than using the control panel. I have made extensive use of the inspector of Firefox to help me and am working on a development site.
I then made a copy of the MaxiMenu module for English to change "assignments" and "menu to render" to the German setting. To my surprise the elements of the German menu just do not seem to be exposed to custom.css, have a look here: algarveoutdoors.com/index.php/de/ , or use the flag for changing language.
The custom.css file is read in both languages as for example the placement of the flags is controlled by this and works in both languages.
I just checked, and the Portuguese menu behaves just like the German.
Any clue?
Martin
The old live site can be seen here: casaflordesal.com
Please Log in or Create an account to join the conversation.
6 years 6 months ago #56467
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Custom.css only works for one language
Hi
the problem is that you are targetting the menu using its ID : div#maximenuck981
this ID is not the same for your other menu, and this is the problem
2 solutions :
1/ edit your css to multiply the rules for each ID
2/ give the same ID to all your menus (if you are sure that there is only 1 menu per page). Go in the modules options >> advanced >> module ID : write a text, like "maintopmenu", then you can target it in CSS using div#maintopmenu for all your 3 modules
CEd
the problem is that you are targetting the menu using its ID : div#maximenuck981
this ID is not the same for your other menu, and this is the problem
2 solutions :
1/ edit your css to multiply the rules for each ID
2/ give the same ID to all your menus (if you are sure that there is only 1 menu per page). Go in the modules options >> advanced >> module ID : write a text, like "maintopmenu", then you can target it in CSS using div#maintopmenu for all your 3 modules
CEd
Joomlack Webmaster and Developer
The following user(s) said Thank You: MartinAlgarve
Please Log in or Create an account to join the conversation.
- MartinAlgarve
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
6 years 6 months ago #56476
by MartinAlgarve
Replied by MartinAlgarve on topic Custom.css only works for one language
Thank you, I went for option 2. If there is more than 1 of them I have made a mistake.
Kind regards
Martin
Kind regards
Martin
Please Log in or Create an account to join the conversation.
Time to create page: 0.229 seconds




