ok i tried and it works sofar but the menu is hiding , when i have a mouseover i see it ,,
i have installed a test site
i use the cardinal theme as template
have installed the i18n plugin
in the template.php i change the original
PHP Code:
<ul id="nav">
<?php get_navigation(return_page_slug()); ?>
</ul>
into:
PHP Code:
<div class="sitemenu">
<ul><?php get_i18n_navigation(return_page_slug(),0,1,I18N_SHOW_MENU); ?></ul>
</div>
<div style="clear:both"></div>
</div>
<div id="main">
<div id="nav">
<ul><?php get_i18n_navigation(return_page_slug(),1,100); ?></ul>
</div>
in css i added under the orginal navigation:
PHP Code:
.sitemenu { position:relative; height: 1.4em; }
.sitemenu ul { position:absolute; list-style: none; }
.sitemenu li { float:left; }
.sitemenu li ul { display:none; }
.sitemenu li:hover ul { display:block; }
.sitemenu li.current > a { font-weight:800; }
.sitemenu li.currentpath > a { font-weight:800; }
the original navigation is like this :
PHP Code:
#header #nav {position:absolute;top:10px;left:0;list-style:none;}
#header #nav li {float:left;margin:0 10px 0 0;font-size:13px;text-transform:uppercase;font-weight:bold;}
#header #nav li a {display:block;line-height:30px;padding:0 10px;}
#header #nav li a:link, #header #nav li a:visited {border:1px solid #D23939;color:#E17979;text-decoration:none;}
#header #nav li a:hover, #header #nav li a:focus {color:#FFFFFF;text-decoration:none;}
#header #nav li.current a {border:1px solid #FFC4C4;color:#FFFFFF;text-decoration:none;}
ok sofar so good ,,
but as i said the complete menu is only visable with a mouse over
i know also i did something wrong in the php cause got the title in the middle of nowhere but it is just play and try
i tried to replace some lines behind .sitemenu into the orignal lines from the menu
like :
PHP Code:
.sitemenu { position:relative; height: 1.4em; }
into :
PHP Code:
.sitemenu {position:absolute;top:10px;left:0;list-style:none;}
but somewhere it doesn't work either ,,
i mean i dont get the original menu back with working subpages
so if someone can point me on my mistake i will understand it
so i can change it in the website i'm busy with
many thanks
Mandy