Magento change page title of one page

I need to change the title of one page. I tried to add below code to my layout file. But that didn't work;

<checkout_onepage_index>
        <reference name="head">
            <action method="setData" translate="title"><key>title</key><value>your title </value></action>
        </reference>
</checkout_onepage_index>

      

Can anyone help me.

Thank.

+3


source to share


2 answers


try it



<reference name="head">
    <action method="setTitle"><title>New Title</title></action>
</reference>

      

+1


source


Check once with the following

<reference name="head">
    <action method="setTitle" translate="title"><title>Your Title</title></action>
</reference>

      

or through code by accessing the header element element and calling a method setTitle('your title')

on it.

$this->getLayout()->getBlock('head')->setTitle('your title'); \

      

In addition, in the case, To customize the headers or values ​​of the labels, that is, "Shipping Information" or "Postal Code", etc. on the page "Checkout Magento Onepage"



open app/locale/en_US/Mage_Checkout.csv

.

To change the value, simply find the value you want to change in column A and edit the text in column B to the text you want to display for that label during validation.

For example, to change the label "Shipping Information", search for "Shipping Information", "Shipping Information" and replace "Shipping Information", "Your Name".

Remember to clear your cache in your Magento admin panel and then check validation to make sure values ​​for titles or labels are displayed.

For more help check the link

+2


source







All Articles