How do you edit the default footer links that Magento applies? Orders and Returns, Search term?
Magento 1.9 – How to Remove Footer Links
footer-linksmagento-1.9
Related Solutions
I've answered a similar question before, here:
Changing the footer in magento theme
Just so this is a proper answer though, the footer for the 1.9 RWD theme is declared in app/design/frontend/rwd/default/layout/page.xml
, the blocks are named footer_links
and footer_links2
.
You can get rid of them entirely by creating a local.xml
(best practice as opposed to just editing page.xml) file in the layout folder and putting this in it:
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="footer">
<remove name="footer_links"/>
<remove name="footer_links2"/>
</reference>
</default>
</layout>
Inside that reference node you can also add your own blocks or widgets. Welcome to the world of Magento!
The magento layout system (and any other xml configuration system) is pretty powerful but it may look intimidating at first.
The idea is that all the xml layout files with the same name are merged into one big xml before processing and rendering.
The upside of this is that you can add stuff to a page without having to alter a core module.
The downside is...what you have now. It's not that easy to find what is where.
In this case the block Magento\Framework\View\Element\Html\Links
is just a container that can be altered from different layout files.
It just holds a collection of links and displays them in the page.
It does not care what links it holds.
Look in all the layout files for the text referenceBlock name="footer_links"
where footer_links
is the name of the block.
What you find, it alters the block content.
You will find the contact
link in the contact module, advanced search link in the search module and so on.
To generalize... when you need to change the behavior of a block search in the layout files for referenceBlock name="name of the block here"
to see what else alters is.
[Edit]
The name of the blocks in the layout file have nothing to do with the names of the static blocks you add in the admin panel.
The names of the blocks from the layout files are used just to know how to reference them in other layout files.
The names (identifiers) of the static blocks you add/edit in the admin are used for retrieving them when needed.
Best Answer
I think the links you mean are the following folder
The Order and Return link is in layout/sales.xml
The Sitemap link you can find here:layout/catalog.xml
The Search terms link you can find here: layout/catalogsearch.xml
The contacts link in: layout/contacts.xml
Just comment the ones out you want to remove. If you want to remove all of them and just add your static cms block "footer_links" then you will need to copy this file
/app/code/core/Mage/Page/Block/Template/Links.php
to your local files and comment the following piece of code out