默认情况下,非cms页面与网站本身具有相同的标题,我有一个seomoz帐户,报告我有2个页面具有相同的标题
http://www.theprinterdepo.com/contacts/ http://www.theprinterdepo.com/customer/account/forgotpassword/
我真的需要更改这两个页面的标题,并且在Magento中有点复杂,因为我认为它在一些XML文件上。
问题在于我不知道在哪一个。
我创建了这个文件: /home/theprint/public_html/app/design/frontend/default/MAG060062/layout/local.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<contacts_index_index translate="label">
<label>Contact Us Form</label>
<reference name="head">
<action method="setTitle" translate="title" module="contacts"><title>Contact Us</title></action>
</reference>
</contacts_index_index>
<customer_account_forgotpassword translate="label">
<reference name="head">
<action method="setTitle" translate="title" module="customer"><title>Forgot Your Password</title></action>
</reference>
</customer_account_forgotpassword>
</layout>
</xml>
然而它不起作用
THX
答案 0 :(得分:2)
在你的app / design / frontend / [interface] / [theme] /layout/local.xml中,添加:
<contacts_index_index translate="label">
<label>Contact Us Form</label>
<reference name="head">
<action method="setTitle" translate="title" module="contacts"><title>Contact Us</title></action>
</reference>
</contacts_index_index>
<customer_account_forgotpassword translate="label">
<reference name="head">
<action method="setTitle" translate="title" module="customer"><title>Forgot Your Password</title></action>
</reference>
</customer_account_forgotpassword>