There are some ways for you to change the page title in Magento. Today, Magento Tutorial will introduce you some of the easiest ways:
1) CMS page: Go to backend and open CMS > Manage Pages. Select page to edit and you can set title in ‘Page Title’ field.
2) In frontend and any module, you can use xml file to set new title for your page. The syntax is:
<reference name=“header”>
<action method=“setTitle” translate=“title”><title>Your new page title</title></action>
<reference>
</reference></reference>
3) If it does not work, now you should look at your block php file. You might easily find this line:
$this->getLayout()->getBlock(‘head’)->setTitle($title);
Change the $title to what you want.
1) CMS page: Go to backend and open CMS > Manage Pages. Select page to edit and you can set title in ‘Page Title’ field.
2) In frontend and any module, you can use xml file to set new title for your page. The syntax is:
<reference name=“header”>
<action method=“setTitle” translate=“title”><title>Your new page title</title></action>
<reference>
</reference></reference>
3) If it does not work, now you should look at your block php file. You might easily find this line:
$this->getLayout()->getBlock(‘head’)->setTitle($title);
Change the $title to what you want.
No comments:
Post a Comment