Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    togliere voce home dal meni in wordpress

    ciao a tutti

    vorrei sapere se è possibile togliere dal mio menu la voce preimpostata home, come dicevo nel titolo uso CMS wordpress

    il codice della mia pagina header è sotto riportato, non riesco a capire dove si trova la voce header

    grazie per eventuale aiuto

    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id="main">
    *
    * @package WordPress
    * @subpackage Twenty_Ten
    * @since Twenty Ten 1.0
    */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <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', 'twentyten' ), max( $paged, $page ) );

    ?></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
    /* We add some JavaScript to pages with the comment form
    * to support sites with threaded comments (when in use).
    */
    if ( is_singular() && get_option( 'thread_comments' ) )
    wp_enqueue_script( 'comment-reply' );

    /* 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();
    ?>
    </head>

    <body <?php body_class(); ?>>
    <div id="wrapper" class="hfeed">
    <div id="header">
    <div id="masthead">
    <div id="branding" role="banner">
    <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    <<?php echo $heading_tag; ?> id="site-title">

    <span>
    " rel="home"><?php bloginfo( 'name' ); ?>
    </span>



    </<?php echo $heading_tag; ?>>
    <div id="site-description"><?php bloginfo( 'description' ); ?></div>

    <?php
    // Check if this is a post or page, if it has a thumbnail, and if it's a big one
    if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
    has_post_thumbnail( $post->ID ) &&
    ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    $image[1] >= HEADER_IMAGE_WIDTH ) :
    // Houston, we have a new header image!
    echo get_the_post_thumbnail( $post->ID );
    elseif ( get_header_image() ) : ?>
    [img]<?php header_image(); ?>[/img]" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    <?php endif; ?>
    </div>

    <div id="access" role="navigation">
    <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    <div class="skip-link screen-reader-text">"><?php _e( 'Skip to content', 'twentyten' ); ?></div>
    <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    </div>
    </div>
    </div>

    <div id="main">
    Ctrl+Alt+Canc
    www.minium.it
    VIETATO CHIUDERE GLI OCCHI
    www.infolav.org

  2. #2
    Devi andare su Aspetto->Menu credo e puoi modificare da lì le pagine che appaiono all'interno del menu. Poi dipende dal tema che usi, molti hanno un'interfaccia che permette di scegliere quali pagine visualizzare, ma non credo che sia il caso tuo.

    Guarda anche qua: http://codex.wordpress.org/Function_...ce/wp_nav_menu
    Visita il mio blog e canale YouTube dedicati a programmazione web e sicurezza informatica.

  3. #3
    Originariamente inviato da thecodingmonk
    Devi andare su Aspetto->Menu credo e puoi modificare da lì le pagine che appaiono all'interno del menu. Poi dipende dal tema che usi, molti hanno un'interfaccia che permette di scegliere quali pagine visualizzare, ma non credo che sia il caso tuo.

    Guarda anche qua: http://codex.wordpress.org/Function_...ce/wp_nav_menu
    grazie mille per esserti interessato al mio problema
    ora verifico il link che mi hai inviato
    Ctrl+Alt+Canc
    www.minium.it
    VIETATO CHIUDERE GLI OCCHI
    www.infolav.org

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.