复制标题,Magento的忘记密码页面标题
问题描述:
默认情况下,非CMS的网页有网站本身的相同的标题,和我有报告我的SEOmoz帐户,我有2页标题相同复制标题,Magento的忘记密码页面标题
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
答
在您的应用程序/设计/前端/ [接口]/[主题] /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>
文件的实际路径是app/design/frontend/[interface]/[theme] /layout/local.xml – 2011-12-20 09:38:46
该文件不存在!我甚至没有在网站的根目录上的设计文件夹。我搜索了local.xml文件,而我发现的唯一一个是mysql用户和密码在/ app/etc/local/ – 2011-12-20 09:41:09
@DickLaurent的位置,我确实很懒。我已经编辑了我的回答 – OSdave 2011-12-20 09:41:43