【问题标题】:Issue after transferring wordpress site转移 wordpress 网站后的问题
【发布时间】:2017-10-13 16:10:10
【问题描述】:

我已将我的 WP 网站从我的 xaamp 服务器移动到实时服务器。遗憾的是,进展并不顺利。出于某种原因,我的孩子主题不起作用。它说它找不到父主题并提供安装它。从那以后,我尝试通过单击提供的按钮来删除父主题并安装父主题。但问题是一样的。这一切都在我的本地主机上完美运行。我错过了什么?

【问题讨论】:

  • 子主题style.css的header长什么样子?

标签: mysql wordpress web


【解决方案1】:

首先确保您的子主题目录名称不包含任何空格,如果可以,然后检查样式文件头

/* 主题名称:二十五岁的孩子 主题 URI:http://example.com/twenty-fifteen-child/ 说明:二十五儿童主题 作者:约翰·多伊 作者 URI:示例 url 模板:二十五 版本:1.0.0 许可证:GNU 通用公共许可证 v2 或更高版本 许可证 URI:许可证 url 标签:浅色、深色、两栏、右侧边栏、响应式布局、可访问性就绪 文字领域:二十一十五 */

--You will need to replace the example text with the details relevant to your theme.
--The Template line corresponds to the directory name of the parent theme. The parent theme in our example is the Twenty Fifteen theme, so the Template will be twentyfifteen. You may be working with a different theme, so adjust accordingly.
--The only required child theme file is style.css, but functions.php is necessary to enqueue styles correctly (below).

【讨论】:

    【解决方案2】:

    请检查您的模板是否与子主题样式文件中的父主题相同。

    请看下面的二十七个孩子主题代码

    主题名称:二十七个孩子
    主题 URI:http://example.com/twenty-seventeen-child/
    说明: 二十七儿童主题
    作者:约翰·多伊
    作者 URI:http://example.com
    模板:二十七
    版本:1.0.0
    标签:浅色、深色、两栏、右侧边栏、响应式布局、可访问性就绪
    文本域:二十七岁

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-22
      • 1970-01-01
      • 2013-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多