douguanyun2169 2014-03-25 09:06
浏览 91
已采纳

Wordpress - 如何删除标题[关闭]

I added a Wordpress blog on a website. This is how it looks so far: http://alweso.2ap.pl/blog/?m=201403

I would like to get rid of the header area - for the menu to be on top, so it resembles the non-Wordpress pages. I'm a complete newbie if it comes to PHP - what should I remove or add? I'm guessing I should play with header.php, so here's the code:

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php wp_title(); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>

<body <?php body_class() ?>>
<div id="wrapper">
    <header id="header">
        <<?php pinboard_title_tag( 'site' ); ?> id="site-title">
            <?php if ( ( '' != get_header_image() ) &&  ( false != get_header_image() ) ) : ?>
                <a href="<?php echo home_url( '/' ); ?>" rel="home">
                    <img src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>" width="<?php echo ( pinboard_get_option( 'retina_header' ) ? absint( get_custom_header()->width / 2 ) : get_custom_header()->width ); ?>" height="<?php echo ( pinboard_get_option( 'retina_header' ) ? absint( get_custom_header()->height / 2 ) : get_custom_header()->height ); ?>" />
                </a>
            <?php endif; ?>
            <a class="home" href="<?php echo home_url( '/' ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
        </<?php pinboard_title_tag( 'site' ); ?>>
        <?php if( ! is_active_sidebar( 1 ) ) : ?>
            <<?php pinboard_title_tag( 'desc' ); ?> id="site-description"><?php bloginfo( 'description' ); ?></<?php pinboard_title_tag( 'desc' ); ?>>
        <?php endif; ?>
        <?php get_sidebar( 'header' ); ?>
        <div class="clear"></div>
        <nav id="access">
            <a class="nav-show" href="#access">Show Navigation</a>
            <a class="nav-hide" href="#nogo">Hide Navigation</a>
            <?php wp_nav_menu( array( 'theme_location' => 'primary_nav' ) ); ?>
            <div class="clear"></div>
        </nav><!-- #access -->
    </header><!-- #header -->
  • 写回答

2条回答 默认 最新

  • dqknycyt92288 2014-03-25 09:15
    关注
    <?php wp_nav_menu( array( 'theme_location' => 'primary_nav' ) ); ?>
    

    This function showing your nav menu, show you have to call this function , wherever you want to show the menu.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大