12
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

<?php wp_head(); ?>の役割

Last updated at Posted at 2015-05-16

<?php wp_head(); ?>の役割

WordPressのheader.phpには、</header>の直前に<?php wp_head(); ?>が入りますね。

これはどうやら、WordPressに必要なメタ情報、JQUERYのインストールを主にしている様子です。
また、各種プラグインはこれを前提に動いているので、<?php wp_head(); ?>が抜けているとプラグイン、悪ければテーマも動きません。

入れる位置は、</head>の直前です
注意しましょう・・・・。

12
4
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?