Magento Expert Forum - Improve your Magento experience

Results 1 to 20 of 20

How to edit footer links in magento?

  1. #1
    Moderator shunavi's Avatar
    Join Date
    Mar 2013
    Posts
    130
    Thanks
    10
    Thanked 29 Times in 15 Posts

    Thumbs up How to edit footer links in magento?

    Change the footer links in magento is quite easy but I believe many people who get started with magento will need it. Here is a quick tutorial, hope it will help you guys.

    The first step is to login to the administrator back-end of the store:

    Code:
    http://yourdomain.com/index.php/admin
    If you have installed magento under a subfolder of the www root folder for an example “store” you should add this directory name before the index.php.

    As we are using the default Magento template the footer links look like this:


    Note that only the About Us and the Customers Service links are manageable via the footer static block.

    However most of the templates available will use the same Identifier for the footer. After you have logged in the magento back-end, allow it to render completely and navigate to the CMS Static Blocks tab:


    As we are using an empty magento installation for this tutorial only the “footer_links” block is available. Now click on the name of the block and this will load the editor for it:


    You have an advanced html editor enabled by default. If you would prefer to add html code you created for the footer you may disable the editor functions and use plain one via the “Show/Hide Editor” button.

    After you have completed editing the links for the footer click the “Save Block” button available at the  top right corner of the page and navigate back to the front-end. You should refresh the page to see the changes you have set.  

    View more threads in the same category:


  2. The Following 2 Users Say Thank You to shunavi For This Useful Post:

    balwant (12-08-2014),Kathy Daunt (01-08-2014)

  3. #2
    New member arianna143's Avatar
    Join Date
    Apr 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Great!!! If sometimes I would have the same problems then I will follow your instructions.

  4. #3
    Junior Member Gowebbaby's Avatar
    Join Date
    May 2014
    Location
    700 LOWER STATE RD, 19B3 NORTH WALES, PA 19454
    Posts
    42
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default

    Hi all,
    If you want to edit footer links in magento so,You can edit easily from css Put code below related to this.
    This is looking for xml layout instructions with a reference named "footer". We find one appearance in cms.xml.

    <reference name="footer">
    <block type="cms/block" name="cms_footer_links" before="footer_links">
    <!--
    The content of this block is taken from the database by its block_id.
    You can manage it in admin CMS -> Static Blocks
    -->
    <action method="setBlockId"><block_id>footer_links</block_id></action>
    </block>
    </reference>


    Hire Magento Developer at gowebbaby

  5. The Following User Says Thank You to Gowebbaby For This Useful Post:

    Kathy Daunt (01-08-2014)

  6. #4
    New member
    Join Date
    May 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Change footer links in magento

    Great explanation with snapshot!

    We have to follow below steps to change footer links in magento store then go to Admin.

    1. Search for “CMS” from the top of the Menu
    2. Click on Static Blocks
    3. Change as per your requirements
    4. And click on Save.
    5. You are done

  7. #5
    Junior Member Kathy Daunt's Avatar
    Join Date
    May 2013
    Posts
    69
    Thanks
    10
    Thanked 4 Times in 4 Posts

    Default

    Thank you so much Shunavi. This sort of screenshots will help the newbies and readers greatly to know better. User related content.
    Thanks
    Kathy

  8. #6
    Junior Member balwant's Avatar
    Join Date
    Jul 2014
    Posts
    107
    Thanks
    1
    Thanked 5 Times in 5 Posts

    Default

    kathy you are right ,this post would be helpful specially for newbie. Shunavi keep writing such good post.

  9. #7
    Junior Member
    Join Date
    Aug 2014
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    To remove or Edit magento Footer links Orders and Returns is very simple,By default your Magento 1.7.0.2 store will have various links such as Site Map, Seach Terms and Advanced search and Contact Us and Orders and Returns.You can remove Orders and Returns links from

  10. #8
    Junior Member
    Join Date
    Oct 2014
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Create a custom block and add it to footer replacing the default one.

  11. #9
    Junior Member thaonvp's Avatar
    Join Date
    Mar 2015
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Your article really useful. I am very glad to learn about this issue. Thanks

  12. #10
    New member
    Join Date
    Mar 2015
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi shunavi,

    your article is more useful to the newcomer and also who faced this issue can understand easily.


    Thanks & Regards
    Saga Biz Solutions

  13. #11
    Junior Member Cms_ideas's Avatar
    Join Date
    Jun 2014
    Location
    https://cmsideas.net
    Posts
    380
    Thanks
    1
    Thanked 7 Times in 7 Posts

    Default

    Great!!! If sometimes I would have the same problems then I will follow your instructions.

  14. #12
    Junior Member CedCommerce's Avatar
    Join Date
    Jan 2016
    Location
    INDIA
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Great article. Found some useful information on this topic on the below link.

    http://tomrobertshaw.net/2010/06/how...ks-in-magento/

    Thanks

  15. #13
    New member
    Join Date
    Mar 2016
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Great!!! If sometimes I would have the same problems then I will follow your instructions.
    poker online | Judi online | Judi bola

  16. #14
    Junior Member
    Join Date
    Apr 2016
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks to give very useful information

  17. #15
    Junior Member
    Join Date
    Mar 2016
    Location
    india
    Posts
    296
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Magento’s XML layout and template framework and the flexibility that it brings is awesome, but unfortunately it does come with its own learning curve. This can take some time getting used to if you’re unfamiliar with Zend Framework and can turn the most trivial of tasks like modifying the links in the footer of a page somewhat more involved.

    So let’s have a look at template/page/html/footer.phtml

    You will be able to see that this gives us the footer div and loads most of the content through:

    <?php echo $this->getChildHtml() ?>

    This is looking for xml layout instructions with a reference named “footer”. We find one appearance in cms.xml.

    <reference name="footer">
    <block type="cms/block" name="cms_footer_links" before="footer_links">
    <!--
    The content of this block is taken from the database by its block_id.
    You can manage it in admin CMS -> Static Blocks
    -->
    <action method="setBlockId"><block_id>footer_links</block_id></action>
    </block>
    </reference>

    As the comment explains, this merely defines that there is a static block available, named “footer_links” and its content is defined in Magento Admin->CMS->Static Blocks.

    You can change the static block that is loaded by updating the block id with the name of your block.

    You can then create your list of links as appropriate in the Magento backend, the default footer block contains:

    <ul>
    <li><a href="">About Us</a></li>
    <li class="last"><a href="">Customer Service</a></li>
    </ul>

    There are a couple of reasons why it’s great to edit the footer links in this way. One is that the store owner can easily change the footer at a later date without needing a professional to hand. Another, is the flexibility to add different content if you so wish, it doesn’t have to be a simple list of links.

    Another block with a “footer” reference can be found in page.xml:

    <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
    <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>
    </block>

    In the page/template/links.phtml file we can see a function call to $this->getLinks();

    The structure for this Block is in

    /app/code/core/Mage/Page/Block/Template/Links.php

    Now layouts can add links to this structure. So if we take a quick grep of the layout files for block name “footer_links”, we can see what else is adding items to the footer links by the addLink method.

    layout/rss.xml

    <reference name="footer_links">
    <action method="addLink" translate="label title" module="rss" ifconfig="rss/config/active"><label>RSS</label><url>rss</url><title>RSS</title><prepare>true</prepare><urlParams/><position/><li/><a>class="link-rss"</a></action>
    </reference>

    layout/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>
    </reference>

    layout/catalogsearch.xml

    <reference name="footer_links">
    <action method="addLink" translate="label title" module="catalogsearch" ifconfig="catalog/seo/search_terms">
    <label>Search Terms</label>
    <url helper="catalogsearch/getSearchTermUrl" />
    <title>Search Terms</title>
    </action>
    <action method="addLink" translate="label title" module="catalogsearch">
    <label>Advanced Search</label>
    <url helper="catalogsearch/getAdvancedSearchUrl" />
    <title>Advanced Search</title>
    </action>
    </reference>

    layout/contacts.xml

    <reference name="footer_links">
    <action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled"><label>Contact Us</label><url>contacts</url><title>Contact Us</title><prepare>true</prepare></action>
    </reference>

    Now that you know where each of these are defined you can remove them if necessary in your theme. Of course, you have now realised that this is also a second method for adding footer links! The advantage of this method is that if all you need is another link, it doesn’t require you to go into the Admin interface to add new cms block. It all can be done in xml files rather than being in the database.

  18. #16
    Junior Member
    Join Date
    Jan 2016
    Location
    Rajkot, Gujarat, India
    Posts
    21
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Hi,

    go to : app/design/frontend/rwd/default/layout/page.xml

    and find for footer so you will rich at footer section.

    Make local.xml - if you don;t create at and then remove quick link and my account section

    <?xml version="1.0"?>
    <layout version="0.1.0">
    <default>
    <reference name="footer">
    <remove name="footer_links"/>
    <remove name="footer_links2"/>
    </reference>
    </default>
    </layout>

    Adding more in to 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_posts">
    <action method="setBlockId"><block_id>footer_posts</block_id></action>
    </block>
    <block type="cms/block" name="footer_news">
    <action method="setBlockId"><block_id>footer_news</block_id></action>
    </block>
    </reference>
    </default>
    </layout>

    Thanks

  19. The Following User Says Thank You to jameswarner For This Useful Post:

    taylorrosemarie (08-07-2016)

  20. #17
    Junior Member
    Join Date
    Aug 2016
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok it is quite stable
    a great thing
    thanks

  21. #18
    New member
    Join Date
    Jul 2016
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Để xóa hoặc sửa Magento Footer kết Đơn đặt hàng và lợi nhuận là rất đơn giản, bởi mặc định cửa hàng Magento 1.7.0.2 của bạn sẽ có nhiều liên kết

  22. #19
    Junior Member knowband.plugins's Avatar
    Join Date
    Jul 2016
    Location
    Noida, India
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Magento footer links are in footer static blocks. To edit footer links you have to edit the footer static blocks. First login into your magento backend. You will have to go to CMS -> Static blocks. In the identifier column search 'footer' keyword. You will find footer_links block there. All your footer links are in it. In its general tab you will find various things like Block Title, Identifier, Status, Content. You have to edit the content section. Make all the necessary changes. After making changes do not forget to clear cache.

    Hope you find this helpful.

    Regards,

    Knowband Plugins | Buy Best Magento Extensions

  23. #20

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •