Can';t在Wordpress中激活子主题
我的网站是 我必须为一个名为udesign的主题创建一个子主题 我已经做了必要的事情。但是当我激活子主题时,我会收到一条消息说“这个主题需要父主题” 这是我的functions.php代码Can';t在Wordpress中激活子主题,wordpress,wordpress-theming,Wordpress,Wordpress Theming,我的网站是 我必须为一个名为udesign的主题创建一个子主题 我已经做了必要的事情。但是当我激活子主题时,我会收到一条消息说“这个主题需要父主题” 这是我的functions.php代码 <?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * Wordpress will use those functions instead of
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* Wordpress will use those functions instead of the original functions then.
*/
那么我做错了什么
注意:有人对我说你不能激活子主题。这是真的吗?请帮忙
我必须为名为udesign的主题创建子主题
你的css头标签
模板:u型设计
这两者不匹配,这就是它不起作用的原因(假设根据提供的信息)
在css标题关键字
template
中始终放置父主题的文件夹名非常明显的事情,但是u-design
主题在wordpress中?另一件事是添加@importurl(“../u-design/style.css”)代码>您希望在functions.php中实现什么?此外,正如@wordpresser所说,您在子主题文件夹中的style.css文件中缺少一行。不能激活子主题不是真的。一切都需要在正确的地方。再看一遍,确保没有遗漏任何步骤。
/*
Theme Name: U-design Child Theme
Theme URI: http://themeforest.net/item/udesign-wordpress-theme/253220?ref=internq7
Description: A slick, powerful and clean theme.
Author: Andon
Author URI: http://themeforest.net/user/internq7/portfolio?ref=internq7
Template: u-design
Version: 2.1.0
*/