Nachdem ich vor kurzem erst eine Frage bezüglich eines Menüs gestellt habe und leider keinerlei Antwort erhalten habe versuche ich jetzt die Frage noch einmal anders zu stellen.
Ich habe ein Menü in ein Template eingebunden.
Dazu habe ich in der header.php folgendes eingefügt:
<?php
if (function_exists('wp_nav_menu') && get_option('gpp_wp_menu')=='true' ) {
wp_nav_menu( 'sort_column=menu_order&menu_class=sf-menu&theme_location=main-menu' );
} else {
include (TEMPLATEPATH . '/nav.php');
}
?>
Die beschriebene nav.php habe ich eingefügt, ebenfalls die benötigte nav.css. Das Menü wird auch angezeigt wie ich es gerne hätte...nur nicht mit der von mir erstellten Menüstruktur.
Momentan schaut es so aus das er mir jetzt folgende Menüstruktur darstellt:
pages | pages | subscribe | contact | search
Wer kann mir helfen?
Hier der Inhalt der nav.php welche ja im Header aufgerufen wird!
<?php
<!-- Navigation -->
<ul class="sf-menu">
<li>
<a href="#" title="<?php _e('pages','gpp_i18n'); ?>"><?php if($pages_title==="" || !$pages_title) { _e('pages','gpp_i18n'); } else { echo $pages_title; } ?></a>
<ul>
<?php ro_list_pages($pparam); ?>
</ul>
</li>
<li>
<a href="#" title="<?php _e('pages','gpp_i18n'); ?>"><?php if($pages_title==="" || !$pages_title) { _e('pages','gpp_i18n'); } else { echo $pages_title; } ?></a>
<ul>
<?php ro_list_pages($pparam); ?>
</ul>
</li>
<li class="subscribe-list">
<a href="#" title="<?php _e('subscribe','gpp_i18n'); ?>"><?php _e('subscribe','gpp_i18n'); ?></a>
<ul>
<li><a href="<?php if ( get_option('gpp_feedburner_url') <> "" ) { echo get_option('gpp_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" class="<?php _e('feed','gpp_i18n'); ?>"><?php _e('posts','gpp_i18n'); ?></a></li>
<li><a href="<?php bloginfo('comments_rss2_url'); ?>" class="icon comments" title="<?php _e('comments','gpp_i18n'); ?>"><?php _e('comments','gpp_i18n'); ?></a></li>
</ul>
</li>
<?php if ( get_option('gpp_contact_info') == 'true' || get_option('gpp_contact_info')=== FALSE ) { ?>
<li>
<a href="#" title="<?php _e('contact','gpp_i18n'); ?>"><?php _e('contact','gpp_i18n'); ?></a>
<ul>
<?php if(($phone === FALSE || $phone != "")) { ?><li><a href="tel:<?php echo $phoneval; ?>" class="icon phone" title="<?php echo $phoneval; ?>"><?php echo $phoneval; ?></a></li><?php } ?>
<?php if(($email === FALSE || $email != "")) { ?><li><a href="mailto:<?php echo $emailval; ?>" class="icon email" title="<?php _e('email me','gpp_i18n'); ?>"><?php _e('email me','gpp_i18n'); ?></a></li><?php } ?>
</ul>
</li>
<?php } ?>
<?php if ( get_option('gpp_link_addition') == 'true' ) { ?>
<li>
<a href="<?php echo get_option('gpp_link_URL');?>" title="<?php echo get_option('gpp_link_title');?>"><?php echo get_option('gpp_link_title');?></a>
<ul>
<?php if( get_option('gpp_link_url_2') != "") { ?><li><a href="<?php echo get_option('gpp_link_URL_2');?>" title="<?php echo get_option('gpp_link_title_2');?>"><?php echo get_option('gpp_link_title_2');?></a></li><?php } ?>
<?php if( get_option('gpp_link_url_3') != "") { ?><li><a href="<?php echo get_option('gpp_link_URL_3');?>" title="<?php echo get_option('gpp_link_title_3');?>"><?php echo get_option('gpp_link_title_3');?></a></li><?php } ?>
<?php if( get_option('gpp_link_url_4') != "") { ?><li><a href="<?php echo get_option('gpp_link_URL_4');?>" title="<?php echo get_option('gpp_link_title_4');?>"><?php echo get_option('gpp_link_title_4');?></a></li><?php } ?>
<?php if( get_option('gpp_link_url_5') != "") { ?><li><a href="<?php echo get_option('gpp_link_URL_5');?>" title="<?php echo get_option('gpp_link_title_5');?>"><?php echo get_option('gpp_link_title_5');?></a></li><?php } ?>
<?php if( get_option('gpp_link_url_6') != "") { ?><li><a href="<?php echo get_option('gpp_link_URL_6');?>" title="<?php echo get_option('gpp_link_title_6');?>"><?php echo get_option('gpp_link_title_6');?></a></li><?php } ?>
<?php if( get_option('gpp_link_url_7') != "") { ?><li><a href="<?php echo get_option('gpp_link_URL_7');?>" title="<?php echo get_option('gpp_link_title_7');?>"><?php echo get_option('gpp_link_title_7');?></a></li><?php } ?>
<?php if( get_option('gpp_link_url_8') != "") { ?><li><a href="<?php echo get_option('gpp_link_URL_8');?>" title="<?php echo get_option('gpp_link_title_8');?>"><?php echo get_option('gpp_link_title_8');?></a></li><?php } ?>
<?php if( get_option('gpp_link_url_9') != "") { ?><li><a href="<?php echo get_option('gpp_link_URL_9');?>" title="<?php echo get_option('gpp_link_title_9');?>"><?php echo get_option('gpp_link_title_9');?></a></li><?php } ?>
</ul>
</li>
<?php } else { ?>
<li class="search"><a href="#" title="<?php _e('search','gpp_i18n'); ?>"><?php _e('search','gpp_i18n'); ?></a>
<ul>
<li><?php if(function_exists('get_search_form')) : ?>
<?php get_search_form(); ?>
<?php else : ?>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?></li>
</ul>
</li>
<?php } ?>
</ul>
Alles anzeigen
Das Menü funktioniert ja soweit wie ich es haben möchte, nur mein selbst erstelltes Headermenü wird nicht übernommen.
Vielleicht ist die Frage jetzt verständlicher gestellt.