Changing title through php for just one page

I’ve been working at this for a while as a php novice and I can usually tinker around and figure these out but this one is stumping me. I want to be able to change the title tag for just one page of a website, here’s the current code:

// title
	$body.="<title>";
        if($title) $body.=$title." - ";
    	$body.=$page." - ".rawurldecode($SiteName)."</title>";

I want that code to be standard for every page on the website except for just one page which is $page=‘Blog’

I’ve been able to change the header on just the ‘Blog’ page using if/else statements but since the title code above already has an “if statement” included, it’s really throwing me off.

If you need more information or I’m not putting enough code to solve the problem, please let me know and thanks in advance for any assistance…

Hi there,

Put the following code anywhere in your page (outside <?php ?> tags):

[php] [/php]

or

[php] [/php]

or

[php]<?php
echo ’';
?>[/php]

Cheers,

Sponsor our Newsletter | Privacy Policy | Terms of Service