Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/9.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_Wordpress Theming - Fatal编程技术网

Can';t在Wordpress中激活子主题

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

我的网站是

我必须为一个名为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 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

*/