hi,
i to do this in the header

$('document').ready(function(){
  $('ul.sf-menu')
  .find
('li.current_page_item,li.current_page_parent,li.current_page_ancestorĀ­')
    .addClass('current')
    .end()
  .superfish({
    pathClass : 'current'
     delay:       500,
     speed:       'fast'

  });
});
</script>


and this in the body.

<body>
<div id="page">
<div id="header">
        <h1><a href="#"><?php bloginfo('name'); ?></a></h1>

        <h2 id="blog-description"><?php bloginfo('description'); ?></h2>

       <?php include (TEMPLATEPATH . '/searchform.php'); ?>
                <div id="menu">
                        <ul class="sf-menu">
                                <li  class="current_page_item"><a href="<?php 
bloginfo('url'); ?
>">Home</a></li>
                                <?php wp_list_pages('title_li='); ?>
                        </ul>
                </div>
        <div class="clear"></div>
</div><!-- end header -->

in my suberfish.css i wrote

.sf-menu li:hover, .sf-menu li.sfHover,
.sf-menu a:focus, .sf-menu a:active, .sf-menu li.current_page_item {
        color: green;
        background: url(../img/nav_bg.jpg) repeat-x left bottom;


it works fine but the problem that i have is when i load the website
the home button is checked correct but when i go to another menu then
is that checked and the home but i don“t is that correct the first
button must be unchecked...sorry my english is not so good....what ist
my mistake....

taniss

Reply via email to