2

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

4

6 回答 6

7

这些链接被添加到多个布局文件中。最简单的方法是对“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,此链接将最终出现在“快速链接”块中。我想一旦你找到了这个,你就会弄清楚其余的。

于 2014-10-14T08:55:33.920 回答
5

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

页面.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>

于 2014-07-30T08:29:29.347 回答
1

这些链接在管理菜单 -> CMC ->静态块上可用

此处可用Footer Links,并替换/修改所需的链接。

于 2015-05-11T12:44:11.423 回答
-1

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

于 2014-07-22T08:11:38.220 回答
-4

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

于 2014-11-18T06:08:01.413 回答
-6

嗨它也可以简单。

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

ul.links {显示:无}

或在第一个街区的另一个班级。并通过 statisch 块在管理员的第一个块中创建新链接。

于 2015-04-27T19:20:18.637 回答