← WordPress

WP 3.0 Menu

Lida 1772 vezes

Offline

Carlos Faria 
Membro
Mensagens 551 Gostos 5
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

Boa tarde,


Eu já converti alguns menus do meu tema para os menus do WP 3.0.

Mas tem um que não esta a funcionar correctamente...

Antigo:

Código: [Seleccione]
<div id="cat-menu">
   
<?php 
$catNav '';
if (function_exists('wp_nav_menu')) {
$catNav wp_nav_menu( array( 'theme_location' => 'header-cats''menu_class' => 'nav''menu_id' => 'cat-nav''echo' => false'fallback_cb' => '' ) );};
if ($catNav == '') { ?>

<ul id="cat-nav" class="nav">
<li class="first"><a href="<?php bloginfo('siteurl'); ?>"><?php _e('Home''themejunkie'); ?></a></li>
<?php wp_list_categories('title_li=&orderby=id'); ?>
</ul>
<?php } else echo($catNav); ?>
       
</div> <!--end #cat-nav-->


Novo: (??)

Código: [Seleccione]
<?php wp_nav_menu( array('menu' => 'Menu Principal' )); ?>
e também tentei:

Código: [Seleccione]
<?php wp_nav_menu( array( 'sort_column' => 'menu_order''container_class' => 'menu-header' ) ); ?>

O problema aqui é que o novo menu não fica com o mesmo estilo que o antigo.

Offline

João Godinho 
Membro
Mensagens 1755 Gostos 2
Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Também me aconteceu isso noutro dia, e tinha as mesmas id no css.
Offline

Carlos Faria 
Membro
Mensagens 551 Gostos 5
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

Alguém pode ajudar? sff
Offline

Carlos Faria 
Membro
Mensagens 551 Gostos 5
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

Onde andam os "gurus" do WP ? :)