I received the following doubt:
I am trying to get the links where you switch language not to be a list. i have tried to find the specific code line telling it to become a list but can't find it. so i would be glad if you could help me out.
So in shorter terms: Where is the code telling the language links to line up in a list?.
The language menu is a list of links, so it must be coded as a XHTML list. That's the first layer, the "semantic" layer of page making. The second layer is the look: you can change it using styles (CSS). That's the recommend way doing this kind of things. But I'll explain both possible solutions.
1) The CSS solution
First, in your template, surround your language menu tag with a with a unique id:
Code: Select all
<div id='langmenu'>
{language_menu show_title=false show_current=false show_default=true show_inactive=true}
</div> <!-- langmenu -->
(The parameters of language_menu are taken from a site of mine, they are not relevant to the example).
Then change the style of the menu in your CSS. This is only an example how to convert the ordinary look of a list into a one-line list of elements without separators:
Code: Select all
#langmenu ul {
background-color: #F0F0F0;
font-size: 1em;
line-height: 1em;
margin: .5em auto;
padding: .5em;
list-style: none;
}
#langmenu ul li {
margin:0 1em 0 0;
display:inline;
}
You could create visual separators with this add-on:
Code: Select all
#langmenu ul li+li {
border-left: 1px dotted blue;
}
The possibilities are endless.
2) The "hard" solution
If there's some special reason why the CSS solution is not enough and you really need to remove the in the code, it's easy too:
In the language_menu tag look for the line "// Create the menu".
Then find and remove this line:
And this one too (the last one):
(Another option is to change the "" and "" to "" and ""; then the menu would be into a marked paragraph).
Between those lines, in the code, there are several
occurrences of "" and "". You can change them to "" and "" if you want to keep some CSS control later, or simply remove the first and change the second to "
"... Endless options, depending of what you need.
Anyway I recommend the CSS solution:
lists must be lists; that improves the page's usability.
Hope this helps.
Cheers,
Marcos