I’m taking my first steps in developing WordPress themes, currently going through the twenty ten theme, and I was wondering how come both index.php and header.php contain the <head>
and <body>
tags?
Leave a Reply
You must be logged in to post a comment.
In index.php there’s a function get_header(), which calls header.php (which has the body and head tags).
I recommend downloading the theme again, because I’m sure there can’t be such an error in that theme.
Cheers.
@nikolay you are absolutely correct
In the twenty ten theme, im sure and tags is not present in both index and header pages.
Mostly tag will be present in header file.