Custom.css only works for one language

More
6 years 6 months ago #56456 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

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #56467 by ced1870
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

Joomlack Webmaster and Developer
The following user(s) said Thank You: MartinAlgarve

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #56476 by MartinAlgarve
Thank you, I went for option 2. If there is more than 1 of them I have made a mistake.

Kind regards

Martin

Please Log in or Create an account to join the conversation.

Time to create page: 0.229 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 4201 guests and no members online