转移wordpress网站后的问题

时间:2017-05-14 23:58:53

标签: mysql wordpress web

我已将我的WP站点从我的xaamp服务器移动到实时服务器。可悲的是,它并不顺利。出于某种原因,我的孩子主题不起作用。它说它无法找到父主题并提供安装它。我已经尝试删除父主题并通过单击提供的按钮安装父主题。但问题是一样的。这一切都完美地在我的localhost上工作。我错过了什么?

2 个答案:

答案 0 :(得分:1)

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

/ *  主题名称:二十五岁儿童  主题URI:http://example.com/twenty-fifteen-child/  描述:二十五个儿童主题  作者:John Doe  作者URI:示例网址  模板:二十五  版本:1.0.0  许可证:GNU通用公共许可证v2或更高版本  许可证URI:许可证URL  标签:浅色,深色,两列,右侧边栏,响应式布局,可访问性就绪  Text Domain:二十五岁的孩子 * /

--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).

答案 1 :(得分:0)

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

请参阅以下二十七个儿童主题代码

主题名称:二十七岁儿童 主题URI:http://example.com/twenty-seventeen-child/
描述:二十七岁儿童主题
作者:John Doe
作者URI:http://example.com
模板:二十七岁
版本:1.0.0
标签:浅色,深色,双列,右侧边栏,响应式布局,可访问性准备
文字域名:二十七岁孩子