Wordpress : header.php


/ Published in: PHP
Save to your folder(s)

<pre><code>* Use the proper DOCTYPE.
* The opening tag should include language_attributes().
* The "content-type" meta element should be placed before everything else, including the title element.
* Use bloginfo() to fetch the title and description.
* Use automatic feed links to add feed links.
* Add a call to wp_head(). Plugins use this action hook to add their own scripts, stylesheets, and other functionality.
</code></pre>

<p>Here's an example of a correctly-formatted HTML5 compliant head area:</p>

URL: http://codex.wordpress.org/Theme_Development#Document_Head_.28header.php.29

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.