Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.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
Can';t在WordPress中居中放置我的自定义标题_Wordpress_Header - Fatal编程技术网

Can';t在WordPress中居中放置我的自定义标题

Can';t在WordPress中居中放置我的自定义标题,wordpress,header,Wordpress,Header,我已经为我的WordPress主题添加了一个自定义标题,但我无法将其置于中心。我想将位置设置为底部中心,但我添加的CSS不会覆盖它。改变位置的正确方法是什么 谢谢 试试这段代码。 Try this code. <div> <header class="site-header" itemscope="" itemtype="http://schema.org/WPHeader" style="width: 50%; margin: 37px auto 0px;">

我已经为我的WordPress主题添加了一个自定义标题,但我无法将其置于中心。我想将位置设置为底部中心,但我添加的CSS不会覆盖它。改变位置的正确方法是什么

谢谢

试试这段代码。
Try this code.
<div>
  <header class="site-header" itemscope="" itemtype="http://schema.org/WPHeader" style="width: 50%; margin: 37px auto 0px;">
    <div class="wrap">
      <div class="title-area">
        <h1 class="site-title" itemprop="headline">
          <a href="http://meynedesign.com/floral/">Floral Theme</a>
        </h1>
      </div>
    </div>
  </header>
</div>