Hi
I'm pretty new to this cms engine (this weekend)
I like this theme and i'm trying to use it... with I18N pluggin too.
One of the things i'm struggling is with the creation of drop donw menu... i can't get it to work... i made severall tries with solutions i fond here on forum but with no avail... the best i achieved is to show the below the main item the child itens but always visible... Unfortunatly i don't have now the time to go over the code to figure out one solution... there exist some simple solution, css and I18N related, i think ?
TIA
Regards
JL
[EDIT]
Kolyok member was kind enought to gime me a solution for this problem. As it can be useful for someone else i will post here their answer:
---------
Ok i checked the theme and it has no styling for multilevel navigation.
Ill show you a snippet that adds dropdown/multilevel navigation (only for one level depth)
First things first:
Open up the theme's header.inc.php and search for this:
PHP Code:
PHP Code:
<?php get_navigation(return_page_slug()); ?>
and replace it with this:
PHP Code:
PHP Code:
<?php get_i18n_navigation(return_page_slug(), 0, 1, I18N_SHOW_MENU); ?>
Now open up the theme's style.css and search for this:
PHP Code:
PHP Code:
#menu ul li {
float: left;
padding: 12px 25px 13px 25px;
margin-bottom: 0px;
}
and replace/add this:
PHP Code:
PHP Code:
#menu ul li {
float: left;
padding: 12px 25px 13px 25px;
margin-bottom: 0px;
position: relative;
}
#menu ul ul {
display:none;
position:absolute;
margin-top: 13px;
left: 0;
}
#menu ul li:hover > ul {
display: block;
}
#menu ul ul li {
background: url(pics/menubg.png);
background-repeat: repeat-x;
float:none;
z-index:100;
}
#menu ul ul li.current {
background: url(pics/menubg.png);
background-repeat: repeat-x;
float:none;
z-index:100;
}
Now check your menu. It should have multilevel navigation but only for one level depth.
I havent added more levels since i think its better if you practice it a little by yourself so you understand why and how it works :-)
Check/study the above codes and see if you can extend it to get a more complex menu.
------------
A great hug for him, thank you Koliok !