【问题标题】:Where to edit footer links Magento 1.9在哪里编辑页脚链接 Magento 1.9
【发布时间】:2014-09-12 22:55:42
【问题描述】:

我试图找出在 magento 1.9 中编辑页脚链接的位置,但我找不到任何东西,我将搜索它近 3 小时但没有成功。对不起,我只是 magento 的新手。 我想编辑“快速链接”“帐户”下的链接我在公司下找到了链接,它位于静态块下的 magento 后端,但两者都没有成功。 谢谢

【问题讨论】:

    标签: footer magento-1.9


    【解决方案1】:

    这些链接被添加到多个布局文件中。最简单的方法是对“layout/*.xml”文件中的“footer_links”短语进行目录搜索(在您的 IDE 中)。您会看到在 sales.xml、customer.xml 或 cms.xml 中设置了一些链接。例如,在 sales.xml 的底部,您应该看到如下内容:

    <default>
        <reference name="footer_links2">
            <block type="sales/guest_links" name="return_link"/>
            <action method="addLinkBlock"><blockName>return_link</blockName></action>
        </reference>
    </default>
    

    这告诉 Magento 将“订单和退货”链接添加到页脚的“帐户”块中。如果将 footer_links2 更改为 footer_links,此链接将最终出现在“快速链接”块中。我想一旦你找到了这个,你就会弄清楚其余的。

    【讨论】:

      【解决方案2】:

      其他链接和标题通过布局系统设置:

      page.xml:

              <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
                  <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
                      <label>Page Footer</label>
                      <action method="setElementClass"><value>bottom-container</value></action>
                  </block>
                  <block type="page/switch" name="store_switcher" as="store_switcher" after="*" template="page/switch/stores.phtml"/>
                  <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml">
                      <action method="setTitle"><title>Quick Links</title></action>
                  </block>
                  <block type="page/template_links" name="footer_links2" as="footer_links2" template="page/template/links.phtml">
                      <action method="setTitle"><title>Account</title></action>
                  </block>
                  <!-- This static block can be created and populated in admin. The footer_links cms block can be used as a starting point. -->
                  <!--<block type="cms/block" name="footer_social_links">
                      <action method="setBlockId"><block_id>footer_social_links</block_id></action>
                  </block>-->
              </block>
      

      然后在catalog.xml中添加链接:

      <reference name="footer_links">
      <action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
      

      【讨论】:

      • 您好,如何在静态块中添加帐户链接?有什么建议吗?
      【解决方案3】:

      这些链接位于管理菜单 -> CMC -> 静态块

      此处提供页脚链接,并替换/修改所需链接。

      【讨论】:

        【解决方案4】:

        在 CMS/页面上,您可以找到一个选项来编辑您想要的页脚。

        【讨论】:

        • 是的,你说得对,但页脚的唯一内容是“公司”下的链接....还有其他建议吗?
        【解决方案5】:

        兄弟,您可以创建一个自定义静态块并将其添加到您的页脚,只需替换旧的。希望对您有所帮助..干杯..

        【讨论】:

        • 虽然正确,但此答案不会增加 stackoverflow 的价值。
        【解决方案6】:

        你好,也可以很简单。

        从你的主题中粘贴你的 style.css。

        ul.links {显示:无}

        或从第一个块开始的另一个类。并通过 statisch 块在管理员的第一个块中创建新链接。

        【讨论】:

        • 那应该是评论,因为它不是答案。
        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-11-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多