プラグイン スタイルシートの後にロードするカスタム css ファイルを取得しようとしています。$deps
のパラメータが使えると思ってwp_register_style()
いたのですが、array()を追加するとcssファイルが全く読み込まれません。これは、array() に何が含まれていても$deps
、つまり (array('style') , array('style.css')) に関係なく発生します。
通話に問題がありますか、またはこれを行うためのより良い方法はありますか?
私の functions.php で
// Load custom css
add_action('wp_enqueue_scripts', 'prefix_add_my_stylesheet');
function prefix_add_my_stylesheet() {
wp_register_style( 'custom-supersized-styles', get_template_directory_uri(). '/css/custom-supersized-styles.css', array('style','supersized');
wp_enqueue_style( 'custom-supersized-styles' );
}