Hello,
In order to comply with the rules set by the client I am working for, I need to get rid of the space between "level1" and "item1" in the menu items (there are no spaces allowed in css classes and id's).
Instead of
I need
Does anyone know how to hack the core code? I guess it must be somewhere in \modules\mod_mainmenu\menu.php but I can't seem to find it.
Anyone?
regards, Kor
Joomla 1.5: how to remove space from
- kor
- Joomla! Enthusiast
- Posts: 177
- Joined: Wed Feb 08, 2006 5:33 pm
- Location: amsterdam, holland
- Contact:
Joomla 1.5: how to remove space from
Last edited by kor on Thu Dec 21, 2006 12:01 am, edited 1 time in total.
- kor
- Joomla! Enthusiast
- Posts: 177
- Joined: Wed Feb 08, 2006 5:33 pm
- Location: amsterdam, holland
- Contact:
Re: Joomla 1.5: how to remove space from
I never assigned 2 classes to one element before but now I found out that this is the way to do it:
from http://www.w3schools.com/css/css_syntax.asp:
"
This is a paragraph.
The paragraph above will be styled by the class "center" AND the class "bold".
"
I think my clients specs are not correct.
So problem solved.
from http://www.w3schools.com/css/css_syntax.asp:
"
This is a paragraph.
The paragraph above will be styled by the class "center" AND the class "bold".
"
I think my clients specs are not correct.
So problem solved.
- ianmac
- Joomla! Virtuoso
- Posts: 4784
- Joined: Sat Sep 24, 2005 11:01 pm
- Location: Toronto, Canada
Re: Joomla 1.5: how to remove space from
I would agree with your analysis... removing the space would cause an undesirable effect.kor wrote: I think my clients specs are not correct.
So problem solved.
Ian
- kor
- Joomla! Enthusiast
- Posts: 177
- Joined: Wed Feb 08, 2006 5:33 pm
- Location: amsterdam, holland
- Contact:
Re: Joomla 1.5: how to remove space from
Yes....
I just wasn't familiar with how to assign two classes to the same selector, I never needed that. So I learned something.
Also I was half asleep and now I realise the client's specifications are not wrong: they only allow alphanumeric characters in the naming. This seems right to me and also does not conflict with what Joomla is generating. I don't know what I was thinking last night.
Everybody happy
regards, Kor
I just wasn't familiar with how to assign two classes to the same selector, I never needed that. So I learned something.
Also I was half asleep and now I realise the client's specifications are not wrong: they only allow alphanumeric characters in the naming. This seems right to me and also does not conflict with what Joomla is generating. I don't know what I was thinking last night.
Everybody happy

regards, Kor
-
- Joomla! Apprentice
- Posts: 21
- Joined: Tue Dec 12, 2006 6:49 pm
Re: Joomla 1.5: how to remove space from
Hi Kor
You have what I'm looking for urgently (see my post which wasn't answered till now here: http://forum.joomla.org/index.php/topic,126770.0.html).
I tried everything with my J1.5 installation be it setting the style in the index.php template file or by changing the menu type to list, vertical, horizontal or flat list in the module manager of the back end, but I never get the classes you mentioned above. So I hope that you can tell me how I get these class names for my menus in the generated HTML output.
Regards
Ernst
You have what I'm looking for urgently (see my post which wasn't answered till now here: http://forum.joomla.org/index.php/topic,126770.0.html).
I tried everything with my J1.5 installation be it setting the style in the index.php template file or by changing the menu type to list, vertical, horizontal or flat list in the module manager of the back end, but I never get the classes you mentioned above. So I hope that you can tell me how I get these class names for my menus in the generated HTML output.
Regards
Ernst
- kor
- Joomla! Enthusiast
- Posts: 177
- Joined: Wed Feb 08, 2006 5:33 pm
- Location: amsterdam, holland
- Contact:
Re: Joomla 1.5: how to remove space from
Hallo Ernst,
I just came back from my vacation so I try to remember the details but I am afraid that takes a day. I can send you a screenshot of the parameters I use, if you wish. Please let me know your email address.
From what I remember the output that I specified comes with the default installation however.
~kor
I just came back from my vacation so I try to remember the details but I am afraid that takes a day. I can send you a screenshot of the parameters I use, if you wish. Please let me know your email address.
From what I remember the output that I specified comes with the default installation however.
~kor
-
- Joomla! Apprentice
- Posts: 21
- Joined: Tue Dec 12, 2006 6:49 pm
Re: Joomla 1.5: how to remove space from
Hi Kor
Thanks for answering my post. I'll send you a private message with my e-mail through the forum.
Regards
Ernst
Thanks for answering my post. I'll send you a private message with my e-mail through the forum.
Regards
Ernst