Sxperm
Mar 1st 2007, 10:23 am
Hi,
I am using template that retrieve $title to be displayed as first sentence/H1 tag in my page. It is good because this text will be changed automatically when blog title changed. However, I'm using long title in homepage and I don't want this text too much long for homepage only. How can I replace this with my own custom text for first page only while it still dynamic when page title change for others page. Here is current code
<?php
if ( is_home() ) {
bloginfo('title');
} else {
echo($title);
}
?>
Please suggest me.
I am using template that retrieve $title to be displayed as first sentence/H1 tag in my page. It is good because this text will be changed automatically when blog title changed. However, I'm using long title in homepage and I don't want this text too much long for homepage only. How can I replace this with my own custom text for first page only while it still dynamic when page title change for others page. Here is current code
<?php
if ( is_home() ) {
bloginfo('title');
} else {
echo($title);
}
?>
Please suggest me.