• Hello,

    I cannot find the following in my editor:

    the <body> and </body> tags of colormag

    Where do I find this please?

    Example HTML page with the ad unit code added in the body
    <html>
    <head>
    This is the head of your page
    <title>Example HTML page</title>
    </head>
    <body>
    This is the body of your page.

    XXX add code XXXX

    </body>
    </html>

Viewing 3 replies - 1 through 3 (of 3 total)
  • @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.

    Thread Starter Angie101

    (@angie101)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to paste code between and tags’ is closed to new replies.