WordpressでCSSの読み込む順番を変えたいのですが、対象のプラグインCSSがどこに記述されているのか、どのように記述されているのかわからず困っています。
※テーマCSSはfunction.phpの中に呼び出しの記述がされていることがわかったのですが、対象のプラグインがどこに書かれているのかがわかっておりません。
▼やりたいこと
- リスト特定のプラグインCSSの読み込む順番を一番最後にしたい(テーマCSSよりも後に読み込みたい)
▼特定のプラグイン
search&fiter(絞り込み検索の機能)
▼function.php内のCSSの記述
//cssの読み込み function themeslug_enqueue_style() { wp_enqueue_style( 'theme-style', get_stylesheet_uri() ); wp_enqueue_style( 'fontawesome-style', 'https://use.fontawesome.com/releases/v5.1.0/css/all.css' ); wp_enqueue_style( 'swiper-style', 'https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.0.7/css/swiper.min.css' ); }
▼実際のソースにあるCSSの記述
2番目のスタイルシートを最後に読み込みたいです。
<link rel='stylesheet' id='wp-block-library-css' href='https://gaicon-march.com/wp-includes/css/dist/block-library/style.min.css?ver=5.0.3' type='text/css' media='all'/> **<link rel='stylesheet' id='searchandfilter-css' href='https://gaicon-march.com/wp-content/plugins/search-filter/style.css?ver=1' type='text/css' media='all'/>** <link rel='stylesheet' id='theme-style-css' href='https://gaicon-march.com/wp-content/themes/jin/style.css?ver=5.0.3' type='text/css' media='all'/> <link rel='stylesheet' id='fontawesome-style-css' href='https://use.fontawesome.com/releases/v5.1.0/css/all.css?ver=5.0.3' type='text/css' media='all'/> <link rel='stylesheet' id='swiper-style-css' href='https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.0.7/css/swiper.min.css?ver=5.0.3' type='text/css' media='all'/> <link rel='stylesheet' id='amazonjs-css' href='https://gaicon-march.com/wp-content/plugins/amazonjs/css/amazonjs.css?ver=0.9' type='text/css' media='all'/>
どなたかお力添え頂けると助かります。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/29 14:18