【发布时间】:2017-09-04 03:56:16
【问题描述】:
我不明白为什么会这样,因为我有一个 index.php 页面。 css 样式表也在那里。 style.css 也有如下注释
style.css
Theme Name: samirTheme
Author: samir
Author URI: www.wordpress.com
Version: 1.0
Description: This is a cool theme
Template: Test1
这是文件夹结构
wordpress 新手。很困惑为什么主题被破坏并且没有出现在wordpress中。有什么想法吗?
【问题讨论】:
-
你缺少一个 template.php 和 style.css
-
但是我的css文件夹中有style.css。我一直没有 template.php 并且主题正在工作,即没有损坏和活跃。为什么现在会坏
-
是不是因为我在wordpress admin里新建了一个页面?
-
你必须在主题文件夹中有style.css或者从functions.php链接它,否则它不起作用,试试吧
-
我的入队函数是functions.php,即wp_enqueue_style('custom-style', get_template_directory_uri().'/css/style.css');
标签: php wordpress wordpress-theming