Category WordPress WordPressでオリジナルのテーマを作成したり、テンプレートファイルをカスタマイズする場合、投稿ページ・カテゴリページ・固定ページ・カスタム投稿タイプで作成したページ等、ページによってCSSやJavascriptを個別に読み込みたい場合があります。 header.phpで条件分岐させてもよいのですが、様々な設定を一括管理できた方が楽です。 そこで、functions.phpでCSSやJavascriptといった外部ファイルの読み込みを一括管理する方法を書こうと思います。 Keyword:外部ファイル管理,css,javascript,functions.php functions.phpで外部CSSの読み込みを一括管理する ここでは、「全ページ共通のCSS」「TOPページ専用のCSS」「投稿ページ・カスタム投稿ページ専用のCSS」「カテゴリページ専