1- In page app/design/frontend/rwd/default/template/page/html/head.phtml template replace default:
<title><?php echo $this->getTitle() ?></title>
with this
<title>
<?php echo ($this->getForcedTitle()) ? Mage::getStoreConfig('design/head/title_prefix').' '.$this->getForcedTitle().' '.Mage::getStoreConfig('design/head/title_suffix') : $this->getTitle() ?>
</title>
or if you don’t wish to use title prefix/sufix added from Magento admin, simply with
<title> <?php echo ($this->getForcedTitle()) ? $this->getForcedTitle() : $this->getTitle() ?> </title>
And now just set “forced” title for pages through layout files Example for My Account page in layout/customer.xml:
<customer_account>
<reference name="head">
<action method=”setForcedTitle”><title>Account Dashboard</title></action>
</reference>
…
</customer_account>
0 Comments