使用wp_register_style
& wp_enqueue_style
时,WordPress会在标头中输出样式路径。格式化样式表使用wp_enqueue_style入队的方式
我想知道的是,是否有更好的格式来让我的源代码能够以我想要的格式进行格式化。
我使用这个:
wp_register_style('layout', get_template_directory_uri() . '/library/css/layout.css', array(), '2.1', 'all');
wp_enqueue_style('layout');
的这个输出是:
<link rel='stylesheet' id='layout-css' href='http://localhost/dreamsmedia/wp-content/themes/dreamsmedia/library/css/layout.css?ver=2.1' type='text/css' media='all' />
有没有办法在输出之前添加额外的空间?
这个问题确实属于http://wordpress.stackexchange.com/ – Tom 2013-02-20 17:18:45
有没有办法将问题移至WordPress.stackexchange.com? – 2013-02-20 20:32:55