@angie101
If you want to do the customization within the theme then, prefer on using the child theme to do the customization work. And about it’s location, you can duplicate the header.php file within child theme and then, paste the required script/code as needed. Also, you can find the opening body tag within this same file. Hope you have got it.
Thanks.
Thanks for the fast reply.
I downloaded the child theme but in the dashboard the theme editor only works on the colormag theme not child.
Also duplicate header?
I don’t understand why and how?
Why doesn’t the HTML have a body tag, as
<body> …. </body>
@angie101
There is body tag already within the header.php file, however it is only opening body tag and for closing, it is in the footer.php file. And via the theme editor page, there in the right side, you will see: Select theme to edit:. There, select the required theme to edit. And what we mean by duplicate is, just copy the header.php file of the parent theme inside the child theme folder and just, modify the code as needed. You can see the opening of body tag in that file as this code: <body <?php body_class(); ?>>. So, just put the required code below it and it should be all fine.
Thanks.