Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/300.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 修改WordPress标题,但I';我不确定我的主题是什么;我在用_Php_Wordpress - Fatal编程技术网

Php 修改WordPress标题,但I';我不确定我的主题是什么;我在用

Php 修改WordPress标题,但I';我不确定我的主题是什么;我在用,php,wordpress,Php,Wordpress,尽管我是一名程序员(用Python和C++),我还是雇了一个人来做我的Wordpress网站。我不想花很多时间学习Wordpress,他有更好的平面设计技能。但是,我现在需要对标题进行一些更改,我将尝试自己进行更改以节省资金 我的第一个困惑是我的主题是如何设置的。我想我雇佣的人是基于根的主题,但我在网站上看到的东西和我在网上找到的一些教程中对根的描述似乎有很多不同。我想首先在head.php、header.php、header-top-navbar.php和page-header.php中发布一

尽管我是一名程序员(用Python和C++),我还是雇了一个人来做我的Wordpress网站。我不想花很多时间学习Wordpress,他有更好的平面设计技能。但是,我现在需要对标题进行一些更改,我将尝试自己进行更改以节省资金

我的第一个困惑是我的主题是如何设置的。我想我雇佣的人是基于根的主题,但我在网站上看到的东西和我在网上找到的一些教程中对根的描述似乎有很多不同。我想首先在head.php、header.php、header-top-navbar.php和page-header.php中发布一些代码。我的问题是——为了在标题中添加一些文本,我需要在哪里进行更改?(我想加上一句口号——“纯正的声音适合敏锐的耳朵”)

我知道这一切都可能很复杂,所以如果没有简单的答案,我想了解一下这里使用的主题,以及如何学习更多关于使用它的知识。那么基本上,这里发生了什么?救命啊

下面是header.php:

<header class="banner" role="banner">
  <div class="container">
    <div class="row">
      <div class="col-xs-12 col-lg-2">
        <h1 class="logo"><a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?>">Brilliant Zen Audio</a></h1>
      </div>
      <div class="col-xs-12 col-lg-7 col-lg-offset-3">
        <nav role="navigation" class="clearfix">
          <?php
            if (has_nav_menu('primary_navigation')) :
              wp_nav_menu(array('theme_location' => 'primary_navigation', 'menu_class' => ''));
            endif;
          ?>
        </nav>      
      </div>
    </div>
  </div>
</header>
<div class="page-header">
  <h1>
    <?php echo roots_title(); ?>
  </h1>
</div>

下面是head.php:

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <title><?php wp_title('|', true, 'right'); ?></title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <?php wp_head(); ?>

  <link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> Feed" href="<?php echo home_url(); ?>/feed/">
</head>

主题按以下顺序加载模板(请参见
base.php
):

  • head.php
  • header-top-navbar.php
    如果在config.php中启用了引导的navbar,则加载
    header.php
  • page header.php
    ,仅在查看页面时调用(
    page.php
  • 我不确定您是否启用了引导导航栏,因此我的最佳猜测是更改
    header.php

    <header class="banner" role="banner">
      <div class="container">
        <div class="row">
          <div class="col-xs-12 col-lg-2">
            <h1 class="logo"><a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?>">Brilliant Zen Audio</a></h1>
            <p>"Pure Sound for Perceptive Ears"</p>
          </div>
          <div class="col-xs-12 col-lg-7 col-lg-offset-3">
            <nav role="navigation" class="clearfix">
              <?php
                if (has_nav_menu('primary_navigation')) :
                  wp_nav_menu(array('theme_location' => 'primary_navigation', 'menu_class' => ''));
                endif;
              ?>
            </nav>      
          </div>
        </div>
      </div>
    </header>
    
    
    “纯正的声音适合敏锐的耳朵”


    在这里,我添加了您的口号,就在徽标下方(第6行)。HTH

    这是一个开始,但它将文本填充到与我的徽标图像相同的空间中。我尝试将文本移动到
    内部,然后将其移动到导航菜单上方,但将导航菜单向下推到部分消失的位置。有什么想法吗?所有这些类意味着什么(col-xs-12,等等)。这些是网格CSS类。看看能不能理解他们。您可能需要更改标题中的一些CSS类以获得所需的布局。谢谢。我能够把标语放在一个更好的位置,但现在的问题是这个。当这家伙编程的时候,头版包括一个棕色矩形上的徽标和导航菜单。该矩形下方是一个滑块。我现在可以移动标题中的元素,但是棕色矩形的大小没有改变,滑块保持在相同的位置,因此标题的元素最终被绘制在棕色矩形的下方。你知道棕色矩形的大小是在哪里定义的吗?也许,我可以如何使它随着标题的放大而自动放大?我编辑了这个问题,添加了front-page.php中的代码。这可能会提供一些关于首页格式的提示。标题的高度很可能是通过CSS定义的,可能是在
    style.CSS
    中。查看是否有一个
    .banner{…}
    类,并根据您的需要进行相应的更改。
    <div class="row">
    
    <?php putRevSlider( "brilliant-zen" ) ?>
    
    </div>
    <div class="container" style="margin-bottom:3em;">
      <div class="row">
        <div class="col-lg-7">
          <h3> Brilliant Zen Audio</h3>
          <p>A Zen master brings all the factors of enlightenment into balance. Brilliant Zen Audio offers a synergistic blend
             of musicality, detail, and dynamics for bringing musical enjoyment into a most pleasureful balance.</p>
    
        </div>
        <div class="col-lg-5">
          <h3>Musicality, Detail, and Dynamics</h3>
          <p>Brilliant Zen Audio is dedicated to providing equipment that excels in musical engagement and beauty, while providing high resolution at the same time.</p><br/>
          <a href="contact" class="btn btn-lg btn-orange">Contact Us</a>
    
        </div>
      </div>
    </div>
    
    <header class="banner" role="banner">
      <div class="container">
        <div class="row">
          <div class="col-xs-12 col-lg-2">
            <h1 class="logo"><a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?>">Brilliant Zen Audio</a></h1>
            <p>"Pure Sound for Perceptive Ears"</p>
          </div>
          <div class="col-xs-12 col-lg-7 col-lg-offset-3">
            <nav role="navigation" class="clearfix">
              <?php
                if (has_nav_menu('primary_navigation')) :
                  wp_nav_menu(array('theme_location' => 'primary_navigation', 'menu_class' => ''));
                endif;
              ?>
            </nav>      
          </div>
        </div>
      </div>
    </header>