WordPress css标题信息-内容,扩展?

时间:2013-02-11 作者:Sven

阿法克astyle.css 因为Wordpress需要在顶部添加一些注释才能正确识别,例如:

/* Theme Name: Cool Theme
 Theme URI:     http://www.example.com
 Description:   Super cool theme */
对内容是否有任何限制?我也看到有人在里面写东西,比如

@author Michael Jordan
@copyright 1990 by me
怎么回事?

1 个回复
最合适的回答,由SO网友:Max Yudin 整理而成

没有理由添加中未列出的内容WP_Theme class $file_headers 数组,因为它根本无法识别。

private static $file_headers = array(
        \'Name\'        => \'Theme Name\',
        \'ThemeURI\'    => \'Theme URI\',
        \'Description\' => \'Description\',
        \'Author\'      => \'Author\',
        \'AuthorURI\'   => \'Author URI\',
        \'Version\'     => \'Version\',
        \'Template\'    => \'Template\',
        \'Status\'      => \'Status\',
        \'Tags\'        => \'Tags\',
        \'TextDomain\'  => \'Text Domain\',
        \'DomainPath\'  => \'Domain Path\',
);

结束