Quote:
Originally Posted by digiemp
Okay, I finally got around to doing this. It definitely works, but it changes EVERY page, including the homepage. It is probably fine to add it to the homepage as well but I thought you should know the outcome.
Thanks again.
|
Look back over post #8, it checks for the Homepage and allows its title to be whatever you want it to be, and then you can set the title for all other pages.
I understood you to want the categories and product page titles to show their name first, followed by your domain name - that would be the opposite of the layout shown in post #8. To get what you want, just use the code I gave in my previous post and include it in post #8's code. Like this:
Code:
$title = end($tmp);
// truncate
$title = str_replace(" ", " ", $title);
if ($title == 'Home') {
$title = str_replace("Home", "Your Domain Name", $title); } else {
$title = trim($title) .' - Your Domain Name' ;
}
}
If that isn't what you meant, then I'm confused. And it won't be the first time for that!
.