Autor Zpráva
XANI
Profil
Dobry den.
Mam problem s menu. Na mojej testovacej stranke mydavia.com mam klasicke menu z odkazmi ale akonahle chcem pridat urovnove menu na kategorie (fashion, mix,...) tak to nefunguje. pripajam aj kod ak by mi niekto vedel poradit. Za odpovede vopred diki.

Header.php
<?php 
if (is_page(array(1,2))) { 
echo theme_get_menu(array( 
'source' => theme_get_option('theme_menu_source'), 
'depth' => theme_get_option('theme_menu_depth'), 
'menu' => 'secondary-menu','class' => 'art-hmenu' 
) 
); 
} else if (is_page(array(3,4))) { 
echo theme_get_menu(array( 
'source' => theme_get_option('theme_menu_source'), 
'depth' => theme_get_option('theme_menu_depth'), 
'menu' => 'tertiary-menu','class' => 'art-hmenu' 
) 
); 
} else if (is_page(5)) { 
echo theme_get_menu(array( 
'source' => theme_get_option('theme_menu_source'), 
'depth' => theme_get_option('theme_menu_depth'), 
'menu' => 'quaternary-menu','class' => 'art-hmenu' 
) 
); 
} else { 
echo theme_get_menu(array( 
'source' => theme_get_option('theme_menu_source'), 
'depth' => theme_get_option('theme_menu_depth'), 
'menu' => 'primary-menu','class' => 'art-hmenu' 
) 
); 
} 
?>

Functions.php
if (function_exists('register_nav_menus')) { 
register_nav_menus(array('primary-menu' => __( 'Primary Navigation', THEME_NS))); 
register_nav_menus(array('secondary-menu' => __( 'Secondary Navigation', THEME_NS))); 
register_nav_menus(array('tertiary-menu' => __( 'Tertiary Navigation', THEME_NS))); 
register_nav_menus(array('quaternary-menu' => __( 'Quaternary Navigation', THEME_NS))); 
}

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm: