Neue Seite erscheint in Navigation

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Erst einmal danke für das herzliche Willkommen.

    Ich bin blutiger Anfänger und das was Du da geschrieben hast kann ich über die Suche nicht finden, daher erlaube ich mir mal den Quellcode des Header zu posten:

    <?php
    /**
    * The Header for the template.
    *
    * @package WordPress
    * @subpackage Yen
    */

    $pp_theme_version = '1.0';

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php wp_title('&lsaquo;', true, 'right'); ?><?php bloginfo('name'); ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

    <?php
    /**
    * Get favicon URL
    **/
    $pp_favicon = get_option('pp_favicon');


    if(!empty($pp_favicon))
    {
    ?>
    <link rel="shortcut icon" href="<?php echo $pp_favicon; ?>" />
    <?php
    }
    ?>

    <!-- Template stylesheet -->
    <?php

    wp_enqueue_style("jqueryui_css", get_bloginfo( 'stylesheet_directory' )."/css/jqueryui/custom.css", false, $pp_theme_version, "all");
    wp_enqueue_style("screen_css", get_bloginfo( 'stylesheet_directory' )."/css/screen.css", false, $pp_theme_version, "all");
    wp_enqueue_style("tipsy_css", get_bloginfo( 'stylesheet_directory' )."/css/tipsy.css", false, $pp_theme_version, "all");
    wp_enqueue_style("fancybox_css", get_bloginfo( 'stylesheet_directory' )."/js/fancybox/jquery.fancybox-1.3.0.css", false, $pp_theme_version, "all");

    ?>

    <!--[if IE]>
    <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_directory' ); ?>/css/ie.css" type="text/css" media="all"/>
    <![endif]-->

    <!--[if IE 7]>
    <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_directory' ); ?>/css/ie7.css" type="text/css" media="all"/>
    <![endif]-->

    <?php

    /**
    * Check Google Maps key
    **/
    $pp_gm_key = get_option('pp_gm_key');

    if(!empty($pp_gm_key))
    {

    ?>
    <script type="text/javascript" src="http://maps.google.com/maps?file=api&…=false&amp;key=<?php echo $pp_gm_key; ?>&amp;hl=en"></script>
    <?php
    }
    ?>

    <?php
    wp_enqueue_script("jQuery", get_bloginfo( 'stylesheet_directory' )."/js/jquery.js", false, $pp_theme_version);
    wp_enqueue_script("jQuery_UI_js", get_bloginfo( 'stylesheet_directory' )."/js/jquery-ui.js", false, $pp_theme_version);
    wp_enqueue_script("fancybox_js", get_bloginfo( 'stylesheet_directory' )."/js/fancybox/jquery.fancybox-1.3.0.js", false, $pp_theme_version);
    wp_enqueue_script("jQuery_easing", get_bloginfo( 'stylesheet_directory' )."/js/jquery.easing.js", false, $pp_theme_version);
    wp_enqueue_script("jQuery_nivo", get_bloginfo( 'stylesheet_directory' )."/js/jquery.nivo.slider.js", false, $pp_theme_version);
    wp_enqueue_script("jQuery_anything_slider", get_bloginfo( 'stylesheet_directory' )."/js/anythingSlider.js", false, $pp_theme_version);

    /**
    * Check Google Maps key
    **/
    $pp_gm_key = get_option('pp_gm_key');

    if(!empty($pp_gm_key))
    {
    wp_enqueue_script("jQuery_gmap", get_bloginfo( 'stylesheet_directory' )."/js/gmap.js", false, $pp_theme_version);
    }

    wp_enqueue_script("jQuery_validate", get_bloginfo( 'stylesheet_directory' )."/js/jquery.validate.js", false, $pp_theme_version);
    wp_enqueue_script("jQuery_tipsy", get_bloginfo( 'stylesheet_directory' )."/js/jquery.tipsy.js", false, $pp_theme_version);
    wp_enqueue_script("browser_js", get_bloginfo( 'stylesheet_directory' )."/js/browser.js", false, $pp_theme_version);
    wp_enqueue_script("custom_js", get_bloginfo( 'stylesheet_directory' )."/js/custom.js", false, $pp_theme_version);

    /* Always have wp_head() just before the closing </head>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to <head> such
    * as styles, scripts, and meta tags.
    */
    wp_head();
    ?>

    <?php
    if(is_front_page())
    {
    ?>
    <script>
    $(document).ready(function(){
    $('#menu_wrapper .nav li a[title=Home]').parent('li').addClass('current-menu-item');
    });
    </script>
    <?php
    }
    ?>

    <style>
    <?php

    /**
    * Get header color
    **/
    $pp_header_color = get_option('pp_header_color');
    if(empty($pp_header_color))
    {
    $pp_header_color = '#000000';
    }

    ?>
    #header_wrapper
    {
    background: <?php echo $pp_header_color; ?>;
    }

    <?php

    /**
    * Get skin color
    **/
    $pp_skin_color = get_option('pp_skin_color');
    if(empty($pp_skin_color))
    {
    $pp_skin_color = '#2B95D3';
    }

    ?>
    #menu_wrapper .nav ul li a.hover, #menu_wrapper .nav ul li a:hover, #menu_wrapper .nav li a.hover, #menu_wrapper .nav li a:hover
    {
    background: <?php echo $pp_skin_color; ?> url("<?php bloginfo( 'stylesheet_directory' ); ?>/images/menu_selected.png") repeat-x top left;
    }

    #menu_wrapper .nav ul li.current_page_item a, .nav li.current-menu-item a
    {
    background: <?php echo $pp_skin_color; ?> url("<?php bloginfo( 'stylesheet_directory' ); ?>/images/menu_selected.png") repeat-x top left;
    }

    input[type=submit], input[type=button], a.button, a.button:hover, a.button:active
    {
    background: <?php echo $pp_skin_color; ?>;
    }

    #menu_wrapper .nav ul li ul, #menu_wrapper .nav li ul
    {
    background: <?php echo $pp_skin_color; ?>;
    }

    .main_nav ul li a:hover, .main_nav li a:hover, .main_nav ul li a:active, .main_nav li a:active, .main_nav li.current-menu-item a, .main_nav li.current-menu-item a:hover, .main_nav li.current-menu-item a:active
    {
    color: <?php echo $pp_skin_color; ?>;
    }

    .pagination a, .pagination a:hover, .pagination a:active, .pagination a.active {
    background: <?php echo $pp_skin_color; ?>;
    }

    #menu_wrapper .nav li ul li a.hover, #menu_wrapper .nav ul li ul li a.hover, #menu_wrapper .nav li ul li a:hover, #menu_wrapper .nav ul li ul li a:hover
    {
    background: #<?php echo hex_darker(substr($pp_skin_color, 1), 20); ?>;
    }
    </style>

    <?php
    /**
    * Get custom CSS
    **/
    $pp_custom_css = get_option('pp_custom_css');


    if(!empty($pp_custom_css))
    {
    echo '<style>';
    echo $pp_custom_css;
    echo '</style>';
    }
    ?>

    </head>

    <?php

    /**
    * Get Current page object
    **/
    $page = get_page($post->ID);


    /**
    * Get current page id
    **/
    $current_page_id = '';

    if(isset($page->ID))
    {
    $current_page_id = $page->ID;
    }

    ?>

    <body <?php body_class(); ?>>

    <!-- Begin template wrapper -->
    <div id="wrapper">

    <!-- Begin header -->
    <div id="header_wrapper">
    <div id="top_bar">
    <div class="logo">
    <!-- Begin logo -->

    <?php
    //get custom logo
    $pp_logo = get_option('pp_logo');

    if(empty($pp_logo))
    {
    /*if($pp_color == 'light')
    {
    $pp_logo = get_bloginfo( 'stylesheet_directory' ).'/images/logo_white.png';
    }
    elseif($pp_color == 'dark')
    {
    $pp_logo = get_bloginfo( 'stylesheet_directory' ).'/images/logo_dark.png';
    }
    else
    {
    $pp_logo = get_bloginfo( 'stylesheet_directory' ).'/images/logo_white.png';
    }*/
    $pp_logo = get_bloginfo( 'stylesheet_directory' ).'/images/logo_white.png';

    }

    ?>

    <a id="custom_logo" href="<?php bloginfo( 'url' ); ?>"><img src="<?php echo $pp_logo?>" alt=""/></a>

    <!-- End logo -->
    </div>

    <!-- Begin top nav -->

    <div id="menu_wrapper">

    <?php
    //Get page nav
    wp_nav_menu(
    array(
    'menu_id' => 'top_menu',
    'menu_class' => 'nav',
    'theme_location' => 'top-menu',
    )
    );
    ?>

    </div>
    <!-- End top nav -->

    <br class="clear"/>

    <!-- End main nav -->
    <?php
    //Get page nav
    wp_nav_menu(
    array(
    'menu_id' => 'main_menu',
    'menu_class' => 'main_nav',
    'theme_location' => 'main-menu',
    )
    );
    ?>
    <!-- End main nav -->

    </div>
    </div>
    <!-- End header -->

  • Wordpress hat in den Menü Einstellung auch eine Einstellung "Seiten Automatisch hinzufügen" Vielleicht hast du diese aktiviert?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!