How to Add Code in Header in WordPress Without Plugin.

WordPress is famous CMS which covers huge websites. Sometimes new person start work on it and find some issues. So for the every solution of the problem he see that he have to install plugins which makes site slow. So what to do . Here is the solution of the some problems like if you have to add code into the header then you do not need to install plugin just you have to add this code in the function.php file and then write what you want to add .

add_action('wp_head', 'head_code');
function head_code() {
      <h1>Helo Word</h2>

I hope you will like it for more similar updates keep on visiting my websites. Thank you!

Leave a Reply

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