您的风格绝对需要哪些主题细节。css文件头?
我正在开发我的第一个主题供个人使用,所以我真的必须包括许可证、许可证uri、作者、作者uri等内容。
WordPress文档只是给出了一个示例,但它们没有引用所需的内容。有人知道吗?
/*
Theme Name: Twenty Thirteen
Theme URI: http://wordpress.org/themes/twentythirteen
Author: the WordPress team
Author URI: http://wordpress.org/
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: 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: twentythirteen
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.
*/
最合适的回答,由SO网友:s_ha_dum 整理而成
快速测试表明,独立主题实际上不需要该标题中的任何内容。标题完全为空的主题在前端和后端都可以很好地注册和加载。
如果是儿童主题,您需要Template:
线
然而
除了主题的CSS样式信息之外,还有样式。css以注释的形式提供主题的详细信息。样式表必须以注释的形式提供主题的详细信息。不允许两个主题在其注释标题中列出相同的详细信息,因为这将导致主题选择对话框中出现问题。如果通过复制现有主题来创建自己的主题,请确保先更改此信息。
http://codex.wordpress.org/Theme_Development#Stylesheet_Guidelines
... 如果您尝试两次相同的技巧,将所有内容留空可能会导致麻烦。只需给出主题的最小细节,你就可以胜任一个你没有发布的个人主题。说
/*
Theme Name: Twenty Thirteen
Author: the WordPress team
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
Version: 1.0
*/