Hướng dẫn xóa Link Footer mặc định trong Magento 2

Trên một trang web, Footer là nơi thường ít đc để ý tới. Sau khi bạn cài đặt Magento 2, sẽ thấy các link trong phần footer bao gồm: Search Terms, Privacy and Cookie Policy, Advanced Search, Orders and Returns, Contact Us. Tuy nhiên thì có rất nhiều lý do khiến bạn đang không thấy nó cần thiết trên trang của mình. Trong bài viết này mình sẽ hướng dẫn bạn cách xóa Link Footer mặc định trong Magento 2.

link footer trong Magento 2

Các bước đơn giản để xóa Link Footer

Bước 1: Đầu tiên bạn hãy mở file default.xml trong thư mục <Vendor>\<theme>\Magento_Theme\layout.

Bước 2: Sau đó, bạn hãy thêm đoạn code dưới vào trong file, đoạn code này sẽ có nhiệm vụ xóa link giúp bạn:

<referenceBlock name="footer_links" remove="true"/>

Ngoài ra, bạn cũng có thể xóa link footer riêng biệt bằng cách sử dụng tên block của liên kết như sau:

  • Advanced Search: catalog-search-advanced-link.
  • Privacy and Cookie Policy: privacy-policy-link.
  • Search Terms: search-term-popular-link.
  • Orders and Returns: sales-guest-form-link.
  • Contact Us: contact-us-link.

Lưu lại và thế là mình đã hướng dẫn xong cách xóa Link Footer mặc định trong Magento 2.

Cảm ơn bạn đã đọc bài viết.

Xem thêm các bài Hướng dẫn Magento 2.

4.5 2 votes
Article Rating

Callula Huy

Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under her belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.

Leave a Reply or put your Question here

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x