• <?php
    /**
    * Header Template
    *
    * Here we setup all logic and XHTML that is required for the header section of all screens.
    *
    * @package WooFramework
    * @subpackage Template
    */

    global $woo_options;

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>

    <meta charset="<?php bloginfo( 'charset' ); ?>" />

    <title><?php woo_title(''); ?></title>
    <?php woo_meta(); ?>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_url' ); ?>" media="screen" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    wp_head();
    woo_head();
    ?>

    </head>

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

    <div id="wrapper">

    <header id="header" class="col-full">

    <?php if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'top-menu' ) ) { ?>

    <div id="top">
    <nav class="col-full" role="navigation">
    <?php wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'top-nav', 'menu_class' => 'nav fl', 'theme_location' => 'top-menu' ) ); ?>
    </nav>
    </div><!-- /#top -->

    <?php } ?>

    <?php
    $logo = get_template_directory_uri() . '/images/logo.png';
    if ( isset( $woo_options['woo_logo'] ) && $woo_options['woo_logo'] != '' ) { $logo = $woo_options['woo_logo']; }
    if ( isset( $woo_options['woo_logo'] ) && $woo_options['woo_logo'] != '' && is_ssl() ) { $logo = preg_replace("/^http:/", "https:", $woo_options['woo_logo']); }
    ?>
    <?php if ( ! isset( $woo_options['woo_texttitle'] ) || $woo_options['woo_texttitle'] != 'true' ) { ?>
    " title="<?php bloginfo( 'description' ); ?>">
    <img src="<?php echo $logo; ?>" alt="<?php bloginfo( 'name' ); ?>" />

    <?php } ?>

    <div class="nav-wrap">

    <hgroup>

    <h1 class="site-title">"><?php bloginfo( 'name' ); ?></h1>
    <h3 class="nav-toggle"><?php _e('Navigation', 'woothemes'); ?></h3>

    </hgroup>

    <nav id="navigation" class="<?php if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'top-menu' ) ) { ?>with-top-menu<?php } ?>" role="navigation">

    <?php if ( $woo_options[ 'woo_header_cart_link' ] == "true" ) { ?>
    <?php if ( class_exists( 'woocommerce' ) ) { echo current(woocommerce_cart_link()); } ?>
    <?php } ?>

    <?php
    if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'primary-menu' ) ) {
    wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav', 'theme_location' => 'primary-menu' ) );
    } else {
    ?>
    <ul id="main-nav" class="nav fl">
    <?php if ( is_page() ) $highlight = 'page_item'; else $highlight = 'page_item current_page_item'; ?>
    <li class="<?php echo $highlight; ?>">"><?php _e( 'Home', 'woothemes' ); ?>
    <?php wp_list_pages( 'sort_column=menu_order&depth=6&title_li=&exclude=' ); ?>
    <!-- /#nav -->
    <?php } ?>

    </nav><!-- /#navigation -->

    <div class="clear"></div>

    </div><!--/.nav-wrap-->

    </header><!-- /#header -->

    diatas adalah header.php milik saya, bagaimana cara supaya tulisan page home tidak muncul tetapi hanya logo saja yang di munculkan??
    mohon bantuannya para wpid 😉

Melihat 3 balasan - 1 sampai 3 (dari total 3)
  • coba masuk ke themes>menus
    lalu buat menu diistu..

    alternatif, coba rubah di bagian function.php

    Pencetus Utas clerosheen

    (@clerosheen)

    rubah jadi apa bro nubie masta?

    maksudnya menu navigasi ‘Home’ nya yang dihilangkan?
    coba hapus bagian ini

    <?php if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'top-menu' ) ) { ?>
    
    <div id="top">
    <nav class="col-full" role="navigation">
    <?php wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'top-nav', 'menu_class' => 'nav fl', 'theme_location' => 'top-menu' ) ); ?>
    </nav>
    </div><!-- /#top -->
    
    <?php } ?>
Melihat 3 balasan - 1 sampai 3 (dari total 3)
  • Topik ‘[ask] Cara menghilangkan page pada header.php’ tertutup untuk balasan baru.