Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/281.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.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
Php wordpress自定义主题未出现在仪表板中_Php_Html_Css_Wordpress_Wordpress Theming - Fatal编程技术网

Php wordpress自定义主题未出现在仪表板中

Php wordpress自定义主题未出现在仪表板中,php,html,css,wordpress,wordpress-theming,Php,Html,Css,Wordpress,Wordpress Theming,因此,我是wordpress新手,我刚刚在我的wp content/themes/mytheme中为我的wordpress项目创建了一个自定义主题。我在新主题中添加了index.php、blog.css和style.css文件,但当我在仪表板中转到主题时,新创建的主题不会显示为选项。 我还缺什么? 谢谢 style.css /* Theme Name: Start WordPress Theme URI: http://wordpress.org/themes/startwordpress Au

因此,我是wordpress新手,我刚刚在我的wp content/themes/mytheme中为我的wordpress项目创建了一个自定义主题。我在新主题中添加了index.php、blog.css和style.css文件,但当我在仪表板中转到主题时,新创建的主题不会显示为选项。 我还缺什么? 谢谢

style.css

/*
Theme Name: Start WordPress
Theme URI: http://wordpress.org/themes/startwordpress
Author: Me
Author URI: http://wordpress.org/
Description: The Start WordPress theme is my first custom theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: bootstrap, black, brown, orange, tan, white, yellow, light, one-
column, two-columns, right-sidebar, flexible-width, custom-header, 
custom-menu, editor-style, featured-images, microformats, post-
formats, rtl-language-support, sticky-post, translation-ready
Text Domain: startwordpress

This theme, like WordPress, is licensed under the GPL .
Use it to make something cool, have fun, and share what you've learned   
with others.
*/

只是为了好玩。不要添加blog.css

只需使用style.css和基本文件,直到您可以看到它。在进行故障排除时,只需使用index.php和style.css,并保持整洁


当一个主题没有显示时,通常会在主题管理中显示以下错误。

只是为了好玩。不要添加blog.css

只需使用style.css和基本文件,直到您可以看到它。在进行故障排除时,只需使用index.php和style.css,并保持整洁


当主题未显示时,主题管理中通常会出现如下所示的错误。

WordPress主题通常包括三种主要类型的文件,以及图像和JavaScript文件

1.名为style.css的样式表,用于控制网站页面的显示(视觉设计和布局)

2.WordPress模板文件,用于控制网站页面从WordPress数据库生成信息以显示在网站上的方式

3.可选函数文件(functions.php)作为WordPress主题文件的一部分

例如:-

按照wp content>themes的路径到达主题文件夹。您将看到WordPress默认主题–Twenty15、Twenty14、Twenty13–和index.php。为你的主题创建一个新的目录;我打电话给startwordpress

/*
Theme Name: Start WordPress
Author: Tania Rascia
Description: Bootstrap Blog template converted to WordPress
Version: 0.0.1
Tags: bootstrap
*/

只需点击此链接,WordPress主题通常包括三种主要类型的文件,以及图像和JavaScript文件

1.名为style.css的样式表,用于控制网站页面的显示(视觉设计和布局)

2.WordPress模板文件,用于控制网站页面从WordPress数据库生成信息以显示在网站上的方式

3.可选函数文件(functions.php)作为WordPress主题文件的一部分

例如:-

按照wp content>themes的路径到达主题文件夹。您将看到WordPress默认主题–Twenty15、Twenty14、Twenty13–和index.php。为你的主题创建一个新的目录;我打电话给startwordpress

/*
Theme Name: Start WordPress
Author: Tania Rascia
Description: Bootstrap Blog template converted to WordPress
Version: 0.0.1
Tags: bootstrap
*/

只需按照此链接检查主题文件是否具有正确的文件权限和所有权

CD到您网站的根目录,然后如果您的服务器在Ubuntu上运行Apache,则可以使用以下设置所有权: 周恩www-data:www-data-R*

或者对于CentOS上的Apache: chownapache:apache-R*

以及权限:

找到-d型-exec chmod 755{}\#更改目录权限


找到-f型-exec chmod 644{}\#更改文件权限

检查主题文件是否具有正确的文件权限和所有权

CD到您网站的根目录,然后如果您的服务器在Ubuntu上运行Apache,则可以使用以下设置所有权: 周恩www-data:www-data-R*

或者对于CentOS上的Apache: chownapache:apache-R*

以及权限:

找到-d型-exec chmod 755{}\#更改目录权限


找到-f型-exec chmod 644{}\#更改文件权限

将包含主题信息的样式文件带到将包含主题信息的样式文件带到这是我下面的示例,因此我不确定从何处开始,因为主题没有出现,我遵循了本教程@这是我下面的例子,所以我不确定从这里去哪里,因为主题没有出现,我遵循了这个教程@阿伦