- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I’m sure this is a novice problem but I can’t figure it out..
I currently used one php file (index2.php) to call the content into the body of the layout using this php include
if (isset($_GET)) {
if (file_exists($_GET . '.txt')) {
include $_GET . '.txt';
}
}
?>
my question is that within the content how do I give those pages (about us, testimonials, tax services, etc.) there own titles instead of it defaulting to the index2.php title? I’m trying to be SEO friendly and I know having the same title on every page isn’t going to help my cause. Thanks in advance for your assistance.
Set a body id. Then depending on that id write an if-statement echoing the title.
Not to sound dumb but how would I do that?
It works, greatly appreciated!
I hope you learn from it. You’re welcome.