BlogOfAsia
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Need Help ASAP plz!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=”https://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 beginning of the generated menu, we will append it manually together with a
that contains are home icon */
$menu = substr($menu, 13);
$menu = ‘<ul id=”nav”><li class=”home”><img src=”‘. get_bloginfo(‘stylesheet_directory’) .’/images/men_icon_home.png” width=”16″ height=”14″ alt=””>‘ . $menu;
/* now we remove theat 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?