The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] Page Titles in PHP Re: [Solved] Page Titles in PHP


Oh wow. That is such a stupid mistake I didn’t catch.
Thank you so much!

Now the if statement I am having a bit of trouble with. I replace this:

<?php echo $pagetitle; ?>

with this:

<?php if ($pagetitle) echo $pagetitle else echo "My Site";?>

The homepage literally doesn’t show up once I enter the code, yet the page title is correct only on pages with a specific title.
Can you tell what I am doing wrong?