使用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