Hi again!
Thanks for the advice!
But plz tell me how could I fix it? The error is here:
<ul id=”nav”><li class=”home”><img src=”http://www.blogofasia.com/wp-content/themes/manifesto/images/men_icon_home.png” width=”16″ height=”14″ alt=”” />class=””><li id=”menu-item-1382″ class=”menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1382″>Asia News
<ul class=”sub-menu”>
But when I open the header.php, it only shows this:
<div id=”menu” class=”dropdown”>
<?php $menu = wp_nav_menu( array(‘container’ => ”, ‘container_class’ => ”, ‘menu_class’ => ”, ‘menu_id’ => ‘nav’, ‘echo’=> false, ‘sort_column’ => ‘menu_order’, ‘theme_location’ => ‘primary’ ) );
/* now we remove the
at the end of the generated menu, we will append it manually together with a <li class=”cleaner”> that clears all floated elements */
$menu_new = substr($menu, 0, -5);
$menu_new .= ‘<li class=”cleaner”> ‘;
print_r($menu_new);
?>
</div>
Please tell me how can I fix this?
Try this:
in the header.php change
FROM:
$menu = substr($menu, 13);
TO:
$menu = substr($menu, 22);
In the footer.php change
FROM:
$menu = substr($menu, 17);
TO:
$menu = substr($menu, 26);
this could make u to succeed
in the header.php change
FROM:
$menu = substr($menu, 13);
TO:
$menu = substr($menu, 22);
In the footer.php change
FROM:
$menu = substr($menu, 17);
TO:
$menu = substr($menu, 52);