WP Head – Snippet – call wp_head in your header.php file

Add menu support in wordpress theme

How to add wp_head in your header.php file?

Just Add the following code before the </head> section in your header.php file.

<?php wp_head();?>


So your header.php file should look something like this.

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php wp_title(''); ?></title>
    <link href="style.css" rel="stylesheet">
    <?php wp_head();?>
<body <?php body_class(); ?>>


Facebook Comments

Leave a Reply

Your email address will not be published. Required fields are marked *