Hallo Daniel,
vielen Dank für deine schnelle und hilfreiche Antwort!! Soetwas in der Art hatte ich schon ganz vage vermutet (das es wohl am übernommenen self-made-Theme liegt) - danke, dass du sagst, dass diese "Mischung" eher unüblich ist. ;) Ich habe nun in die Theme-Dateien geguckt und so gut ich kann nach den Menü-Funktionen gesucht. Leider bin ich keine PHP-Programmiererin, aber ich vermute, dass die Codes aus den Theme-Funktionen, dem Theme Header (dort wird Ebene 1 des Menüs angezeigt) und die Seitenleiste (dort werden die Ebenen 2 ff angezeigt) relevant sind, richtig? Wenn etwas fehlt, liefere ich es umgehend nach!! Ich bin euch Profis sehr dankbar. :) LG! Emily
functions.php (komplett):
PHP
<?php
// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();
// This theme uses post thumbnails
add_theme_support( 'post-thumbnails' );
// Add default posts and comments RSS feed links to head
add_theme_support( 'automatic-feed-links' );
register_nav_menus( array(
'header' => 'Header Navigation',
'meta' => 'Meta Navigation',
) );
register_sidebar( array(
'name' => 'Sidebar',
'description' => '',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h3>',
'after_title' => '</h3>',
) );
register_sidebar( array(
'name' => 'Sidebar Navigation',
'description' => 'Zusätzlicher Platz für individuelle Navigation -> z.B. News',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h3>',
'after_title' => '</h3>',
) );
Alles anzeigen
header.php (Auszug):
PHP
...
<body <?php body_class(); ?>>
<div id="wrapper">
<div id="header">
<?php if( is_page_template('contact.php') ): ?>
<div id="head-bg">
<div id="map_canvas" style="height:100%;width:100%;"></div>
</div>
<?php else: ?>
<div id="head-bg" style="background-image: url(<?php echo $headerImg; ?>)">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" style="color: <?php echo $color; ?>">
<h1 style="color: <?php echo $color; ?>">wünsche & usselmann<br/>
<span class="subline">IHRE ZAHNÄRZTLICHE GEMEINSCHAFTSPRAXIS</span>
</h1>
</a>
<?php wp_nav_menu( array( 'menu_id' => 'meta-nav', 'theme_location' => 'meta', 'container' => false, 'depth' => 1 ) ); ?>
</div>
<?php endif; ?>
</div>
<?php wp_nav_menu( array( 'menu_id' => 'nav', 'theme_location' => 'header', 'container' => false, 'depth' => 1 ) ); ?>
<div class="clear"></div>
<div id="content">
Alles anzeigen
sidebar.php (komplett):
PHP
<?php
?>
<div id="sidebar">
<div id="sub-nav">
<?php
global $post; // Setup the global variable $post
if ( is_page() && $post->post_parent ) // Make sure we are on a page and that the page is a parent
$kiddies = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&echo=0' );
else
$kiddies = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->ID . '&echo=0' );
if ( $kiddies ) {
echo '<ul class="secondary">';
echo $kiddies;
echo '</ul>';
}
?>
<?php if ( function_exists( 'dynamic_sidebar' ) && is_dynamic_sidebar( 'Sidebar Navigation' ) ) : ?>
<div class="custom-nav"><?php dynamic_sidebar( 'Sidebar Navigation' ); ?></div>
<?php endif; ?>
</div>
<?php if ( function_exists( 'dynamic_sidebar' ) && is_dynamic_sidebar( 'Sidebar' ) ) : ?>
<div id="s-main"><?php dynamic_sidebar( 'Sidebar' ); ?></div>
<?php endif; ?>
</div>
Alles anzeigen