Menu displays like a common list
-
Hi all,
I have encountered such a problem.
Menus on the homepage display normal, but on the other pages they display like a list. I can’t find where and how to fix.Please, help me solve this problem.
Here’s the website: http://www.seocentury.comThanks in advance!
Leo
-
I have found this code in functions.php file:
if ( function_exists(“add_theme_support”) ) { add_theme_support(“post-thumbnails”); }
if(function_exists(‘add_custom_background’)) {
add_custom_background();
}if ( function_exists( ‘register_nav_menus’ ) ) {
register_nav_menus(
array(
‘menu_1’ => ‘Menu 1’,
‘menu_2’ => ‘Menu 2’
)
);
}I need to change ‘Menu 2’ as ‘Menu 1’ displays correctly.
Should I change or add anything here?
Thanks!Leo
And these 2 codes I found in the header.php:
Menu 1
<div class=”menu-links”>
<div id=”pagemenucontainer”>
<?php if(function_exists(‘wp_nav_menu’)) {
wp_nav_menu( ‘depth=1&theme_location=menu_1&menu_id=pagemenu&outer-wrapper=&fallback_cb=menu_1_default’);} else {
menu_1_default();
}
function menu_1_default()
{ ?>
<ul id=”pagemenu”>
<li <?php if(is_home()) { ?> class=”current_page_item” <?php } ?>>/”>Home<?php wp_list_pages(‘depth=1&sort_column=menu_order&title_li=’ ); ?>
</div></div>
Menu 2
<div class=”outer”>
<div id=”navcontainer”>
<?php if(function_exists(‘wp_nav_menu’)) {
wp_nav_menu( ‘theme_location=menu_2&menu_id=nav&outer-wrapper=&fallback_cb=menu_2_default’);} else {
menu_2_default();
}
function menu_2_default()
{ ?>
<ul id=”nav”>
<li <?php if(is_home()) { echo ‘ class=”current-cat” ‘; } ?>>“>Home<?php wp_list_categories(‘depth=3&exclude=1&hide_empty=0&orderby=name&show_count=0&use_desc_for_title=1&title_li=’); ?>
<?php } ?>
</div></div>Please, if anyone could help me, I would really appreciate!
Leo
The topic ‘Menu displays like a common list’ is closed to new replies.