标题仅工作主页

时间:2017-12-07 11:01:51

标签: php wordpress

我尝试创建新的WordPress主题文件,但只在主页面上工作。在其他页面无法正常工作。 所以想知道将header.php调用到其他文件的正确方法是什么,所以它也适用于其他页面。

请查看我的header.php文件

<!doctype html>

<html lang="tr">
<head>
    <meta charset="utf-8">
    <title>Twin</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Twin">
    <meta name="author" content="Twin">
    <link href="https://fonts.googleapis.com/css?family=Dosis:300,400,700,800&amp;subset=latin-ext" rel="stylesheet">    
    <link rel="stylesheet" href="public/css/jquery.fancybox.min.css">
    <link rel="stylesheet" href="public/css/bootstrap.min.css">
    <link rel="stylesheet" href="public/css/reset.css">
    <link rel="stylesheet" href="public/css/slick.css">
    <link rel="stylesheet" href="public/css/site.css">
</head>

<body>

    <div class="main-header">
        <div class="container">
            <nav class="navbar navbar-default">
                <div class="container-fluid">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#">
                            <img alt="" src="public/img/logo.svg" width="128" />
                        </a>
                    </div>
                    <div id="navbar" class="navbar-collapse collapse">
                        <ul class="nav navbar-nav navbar-left">
                            <li><a href="/nedir">Nedir?</a></li>
                        </ul>


</body>

0 个答案:

没有答案