标题问题,wordpress

时间:2010-08-19 21:24:16

标签: php wordpress header

尝试更改header.php中的地址,并且由于某种原因,它仅在索引文件中更改,而不在任何其他页面中更改。谁能告诉我为什么会这样?

在索引页面和其他两个页面模板选项中,标题称为相同...

<?php
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />

<title>Bernice's Bakery</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="shortcut icon" type="image/ico" href="favicon.ico" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
    if ( is_singular() && get_option( 'thread_comments' ) )
        wp_enqueue_script( 'comment-reply' );
    wp_head();
?>
</head>

<body <?php body_class(); ?>>
<div id="wrapper" class="hfeed">
    <div id="header">
        <div id="bbheader">
            <h1><a href="http://www.bernicesbakerymt.com">bernice's</a></h1>
            <h1 style="padding-top:31px;"><a href="http://www.bernicesbakerymt.com">bakery</a></h1>
            <h1>&nbsp;</h1>
            <p>190 S. 3rd W. Missoula, MT 59801 728-1358</p>
        </div>
        <div id="masthead">
            <div id="branding" role="banner">
                <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>

            </div><!-- #branding -->

            <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"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></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><!-- #access -->
        </div><!-- #masthead -->
    </div><!-- #header -->

    <div id="main">

此代码中的地址是正确的。其余的页面上写着“109 S. 3rd ......”

网站:http://www.bernicesbakerymt.com/

1 个答案:

答案 0 :(得分:0)

我会在主题的根文件夹中执行find-replace操作。寻找文字“109 S.”你可能会找到另一个地址错误的文件。