Home › Forums › Back End › [Solved] Page Titles in PHP › Re: [Solved] Page Titles in PHP
July 2, 2010 at 7:22 pm
#79202
ScrewzLuse
Member
There’s definitely different ways of doing this. For me, I kind of like keeping it simple.
Page1.php
Code:
Header.php
Code:
Alternatively, you could have something like this in your Header.php file which checks if PageTitle is set at all and if it is, use that instead of the default "My Site"
Code:
You could do it based on the php page name itself but it’s all preference to me.