Wsparcie » Motywy » Usuniecie przycisku strona głowna

  • witam, chciałbym usunać przycisk strona głowna z menu. Nie znalazlem nigdzie inziej na forum, dlatego zamieszczam moj plik header.php. Prosze powiedzcie co usunac, badz modyfikowac.

    <?php
    /**
    * @package WordPress
    * @subpackage Beach
    */
    ?><!DOCTYPE html>
    <!–[if IE 7 ]><html class=”ie7″ <?php language_attributes(); ?>><![endif]–>
    <!–[if IE 8 ]><html class=”ie8″ <?php language_attributes(); ?>><![endif]–>
    <!–[if (gt IE 9)|!(IE)]><!–><html <?php language_attributes(); ?>><!–<![endif]–>
    <head>
    <meta charset=”<?php bloginfo( 'charset’ ); ?>” />
    <title><?php
    /*
    * Print the <title> tag based on what is being viewed.
    */
    global $page, $paged;

    wp_title( '|’, true, 'right’ );

    // Add the blog name.
    bloginfo( 'name’ );
    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( 'description’, 'display’ );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo ” | $site_description”;

    // Add a page number if necessary:
    if ( $paged >= 2 || $page >= 2 )
    echo ’ | ’ . sprintf( __( 'Page %s’, 'beach’ ), max( $paged, $page ) );

    ?></title>
    <link rel=”profile” href=”http://gmpg.org/xfn/11&#8243; />
    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php bloginfo( 'stylesheet_url’ ); ?>” />
    <?php if ( is_singular() && get_option( 'thread_comments’ ) ) wp_enqueue_script( 'comment-reply’ ); ?>
    <link rel=”pingback” href=”<?php bloginfo( 'pingback_url’ ); ?>” />
    <!–[if lt IE 9]>
    <script src=”<?php echo get_template_directory_uri(); ?>/html5.js” type=”text/javascript”></script>
    <![endif]–>
    <?php wp_head(); ?>
    </head>

    <body <?php body_class(); ?>>
    <div id=”page” class=”hfeed”>
    <header id=”branding”>
    <hgroup role=”banner”>
    <img src=”http://dualna.pl/wp-content/uploads/2011/12/logo1.png&#8221; alt=”Tekst alternatywny” /> <h id=”site-description”><?php bloginfo( 'description’ ); ?></h>

    </hgroup>

    <?php if ( has_nav_menu( 'secondary’ ) ) : ?>
    <nav class=”access” role=”navigation”>
    <h1 class=”section-heading”><?php _e( 'Menu’, 'beach’ ); ?></h1>
    <div class=”skip-link screen-reader-text”>„><?php _e( 'Skip to content’, 'beach’ ); ?></div>

    <?php wp_nav_menu( array( 'theme_location’ => 'secondary’ ) ); ?>
    </nav><!– #main .access –>
    <?php endif; ?>
    </header><!– #branding –>

    <div id=”main”>
    <nav class=”access” role=”navigation”>
    <h1 class=”section-heading”><?php _e( 'Menu’, 'beach’ ); ?></h1>
    <div class=”skip-link screen-reader-text”> „> <?php _e( 'Skip to content’, 'beach’ ); ?></div>

    <?php wp_nav_menu( array( 'theme_location’ => 'primary’ ) ); ?>
    </nav><!– #main .access –>

Viewing 1 replies (of 1 total)
  • Jeśli w pliku funktion.php masz taka funkcje:

    function home_page_menu_args( $args ) {
    $args['show_home'] = true;
    return $args;
    }
    add_filter( 'wp_page_menu_args', 'home_page_menu_args' );

    to usuń ją 😉

    Ew. jeżeli nie to to będziemy jeszcze myśleć 😉

Viewing 1 replies (of 1 total)
  • Temat ‘Usuniecie przycisku strona głowna’ jest zamknięty na nowe odpowiedzi.