{"id":5885,"date":"2019-10-14T22:38:00","date_gmt":"2019-10-14T22:38:00","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/?p=5885"},"modified":"2025-05-22T15:36:40","modified_gmt":"2025-05-22T10:06:40","slug":"add-and-edit-footer-links-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/add-and-edit-footer-links-in-magento-2\/","title":{"rendered":"How to Add and edit Footer Links in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Website footers may not be the place with great design or content, but its the place where the visitors look for the details. And the Magento 2 store owners cannot afford to miss any vital details or links in the footer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, the default Magento 2 footer is not up to the mark. The store owners have to modify the footer in order to deliver all the required information and the links.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Fortunately, Magento 2 is a flexible CMS that allows editing the footer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The programmatic method to <strong>add and edit footer links in Magento 2<\/strong> makes it easy for the admin to customize the footer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method to Add and Edit Footer Links in Magento 2:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. Create <strong>module.xml<\/strong> file at <strong>app\/code\/Vendor\/Extension\/etc\/ directory<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?xml version=\"1.0\"?>\n            &lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:Module\/etc\/module.xsd\">\n            &lt;module name=\"Vendor_Extension\" setup_version=\"1.0.0\">&lt;\/module>\n&lt;\/config><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2. Create <em><strong>registration.php<\/strong><\/em> file at <strong>app\/code\/Vendor\/Extension directory<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\n\\Magento\\Framework\\Component\\ComponentRegistrar::register(\n    \\Magento\\Framework\\Component\\ComponentRegistrar::MODULE,\n    'Vendor_Extension',\n    __DIR__\n);<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">To remove the Privacy and Cookie Policy link from the footer:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create <strong>default.xml<\/strong> file at <strong>app\/code\/Vendor\/Extension\/view\/frontend\/layout directory<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?xml version=\"1.0\"?>\n&lt;page xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:View\/Layout\/etc\/page_configuration.xsd\">\n&lt;body>\n    &lt;referenceBlock name=\"privacy-policy-link\" remove=\"true\"\/>\n&lt;\/body>\n&lt;\/page><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">To add new footer link:<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?xml version=\"1.0\"?>\n&lt;page xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:View\/Layout\/etc\/page_configuration.xsd\">\n&lt;body>\n    &lt;referenceBlock name=\"footer_links\">\n         &lt;block class=\"Magento\\Framework\\View\\Element\\Html\\Link\\Current\" name=\"custom-footer-link\">\n             &lt;arguments>\n                 &lt;argument name=\"label\" xsi:type=\"string\">Customer LInk&lt;\/argument>\n                 &lt;argument name=\"path\" xsi:type=\"string\">custom\/extension\/index\/&lt;\/argument>\n             &lt;\/arguments>\n         &lt;\/block>\n     &lt;\/referenceBlock>\n&lt;\/body>\n&lt;\/page><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You may also love to read our another blog post on <a href=\"https:\/\/meetanshi.com\/blog\/remove-default-footer-links-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">how to remove default footer links in Magento 2<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to share the solution with the fellow developers via social media.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Website footers may not be the place with great design or content, but its the place where the visitors look for the details. And the&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-5885","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/5885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=5885"}],"version-history":[{"count":3,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/5885\/revisions"}],"predecessor-version":[{"id":15227,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/5885\/revisions\/15227"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=5885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=5885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=5885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}