magento - 重复标题,Magento 忘记密码页面标题

标签 magento magento-1.4

默认情况下,非 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>

但是它不起作用

谢谢

最佳答案

在你的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>

关于magento - 重复标题,Magento 忘记密码页面标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8573117/

相关文章:

mysql - 数据库中的 magento 属性

magento-1.4 - 在 Magento Admin 中禁用自动送货更新

magento - 如何编辑管理面板订单 View 按钮?

迁移后 Magento 表速率不起作用

php - Magento 1.9 在页脚显示最新产品

mysql - 如何在 Magento mysql 数据库中存储/查询商店/网站特定(或非全局)产品属性?

magento 中的 CSS 消除了我产品上的悬停效果

magento - 使用按钮添加自定义折扣订单

events - Magento : Obtain Id for order, 监听事件 checkout_onepage_controller_success_action

php - magento 以编程方式设置商店 ID