默认的 footer,只有Company能方便的在admin手动修改 ( CMS -> Static Blocks -> Footer Links Company )
下面记录如何能方便编辑 Quick Links,
- 打开管理界面,进入 CMS -> Static Blocks,打开 Footer Links Company ,复制 Content 里所有内容
- 退回到 CMS -> Static Blocks,选 Add New Blocks,
- 把以上复制的 Content 内容复制到 Content,根据需要修改
- Title 写 Footer Quick Links
- Identifier 写 footer_quick_links (这个比较重要,将会写入code)
- Status 选 Enable
- Save Block
- 重复 2 建立 Customer Service, Follow Us
Customer Service 的 Identifier 是 footer_customer_service
Follow Us 的 Identifier 是 footer_social_links
- 找到 app/design/frontend/rwd/default/layout/page.xml
- 在同目录下添加一个 local.xml 文件,文件内容如下
<?xml version="1.0"?> <layout version="0.1.0"> <default> <reference name="footer"> <remove name="footer_links"/> <remove name="footer_links2"/> <block type="cms/block" name="footer_customer_service"> <action method="setBlockId"><block_id>footer_customer_service</block_id></action> </block> <block type="cms/block" name="footer_quick_links"> <action method="setBlockId"><block_id>footer_quick_links</block_id></action> </block> <block type="cms/block" name="footer_social_links"> <action method="setBlockId"><block_id>footer_social_links</block_id></action> </block> </reference> </default> </layout>
- 清空 Cache (System -> Cache Management)
再刷新,就有要求效果了。以后只要在 CMS 改就可以了