We include a header.php file across all the pages on our site. So we could either place a single title in the header.php file which would be applied to the entire site, or have a custom header within each page to be more descriptive.
The problem is that in doing that, the title would be outside the head tags (which remain in the header.php file) and marked as invalid.
Is there some kind of function we can use to define a variable ($pageTitle) within the page, that will be displayed in head tag?
Thanks.