In this video you will learn how to:

  • Disable the current links at the footer section
  • Add a new Block (Footer Links) with a new external URL
  • Add a new Widget (Footer Links)
  • Display your Privacy Policy URL at the footer

Note: In this example we've used Magento 2 (version 2.4.7), open source version, installed on a Windows 11 machine.

  1. Go to the Magento 2 folder on your machine.

    In our case, it's the "termsfeed" folder. Follow the path: vendor > magento > module-cms > view > frontend > layout to get to the default.xml file.

    In the "layout" folder find the default.xml file and open it:

    TermsFeed Magento 2 - Folder - Layout - Open the default.xml file

  2. Add a new parameter - remove="true" - on line 13 in the default.xml file:

    TermsFeed Magento 2 - Folder - Layout - The default.xml file - edit to add remove true and save changes

  3. Go to the Magento's Dashboard and clear the cache. To do so, go to System:

    TermsFeed Magento 2 - Dashboard - System

  4. Select Cache Management under Tools:

    TermsFeed Magento 2 - Dashboard - System - Tools - Cache Management

  5. Even though all looks OK, you still need to Flush Magento Cache:

    TermsFeed Magento 2 - Dashboard - System - Tools - Cache Management - Flush Magento Cache

  6. Reload the page to see changes:

    TermsFeed Magento 2 - Website - Reload the page to see changes

The existing links in the website footer are removed now. The next step is to create a new block with an external URL. It will be your Privacy Policy URL.

Step 2. Add a new Block and an external URL

  1. Go to Content and select Blocks:

    TermsFeed Magento 2 - Dashboard - Content - Blocks

  2. Click the "Add New Block" button:

    TermsFeed Magento 2 - Blocks - Add New Block

  3. Fill in the required fields for the New Block settings:

    TermsFeed Magento 2 - Blocks - Add New Block - The required fields filled

    The required fields are:

    • Make sure that "Enable block" is enabled
    • Add "Block Title." For example, "Footer Links"
    • Add "Identifier." For example, "footerlinks"
    • Select the "Store View." For example, "All Store Views"
  4. Scroll down and click on the "Edit with Page Builder" button:

    TermsFeed Magento 2 - Blocks - Add New Block - The required fields filled - Edit with Page Builder button

  5. Drag and drop the Row layout in the page editor:

    TermsFeed Magento 2 - Blocks - Add New Block - The required fields filled - Edit with Page Builder - Drag and drop Row

  6. Open the Elements section and drag and drop the Text element in the row (in the page editor):

    TermsFeed Magento 2 - Blocks - Add New Block - The required fields filled - Edit with Page Builder - Drag and drop Row - Elements - Text

  7. Select the Link icon from the editor:

    TermsFeed Magento 2 - Blocks - Add New Block - Text editor - Link icon selected

  8. The Insert/Edit Link window opens. Fill in the fields:

    TermsFeed Magento 2 - Blocks - Add New Block - Text editor - Insert Link URL window fields filled - Save

    In our example, we'll show how to add an external Privacy Policy URL to your Magento 2 website. Add the following:

    • In the "URL" field paste the Privacy Policy URL

      • To get a Privacy Policy URL link, go to the TermsFeed Privacy Policy Generator to create a Privacy Policy and get the hosted Privacy Policy URL.

        Once you have a Privacy Policy created by TermsFeed, click Copy from the Link to your Privacy Policy section to copy the URL:

        TermsFeed Generators App: Privacy Policy Download Page - Link to hosted Privacy Policy URL copy option highlighted

    • In the "Text to display" type "Privacy Policy"
    • In the "Title" field type "Privacy Policy"
    • In the "Open link in" section select one between "Current window" or "New window" (dependably how you want your link to open)
    • When done, click Save
  9. Click Save (in the New Block editor):

    TermsFeed Magento 2 - Blocks - Add New Block - Save

The Footer Links Block is now created.

In order to display the link to the Privacy Policy in the footer we first need to create a new Widget and add this newly created Block to the Widget. To do so, continue with Step 3. below.

  1. Go to Content and select Widgets:

    TermsFeed Magento 2 - Blocks - Add New Block - Saved - Content - Widgets

  2. Click "Add Widget" button:

    TermsFeed Magento 2 - Widgets - Add Widget

  3. Adjust the Widget Settings:

    TermsFeed Magento 2 - Widgets - Add Widget - Settings - Type - CMS Static Block - Theme - Continue

    In the Widget Settings section adjust the following:

    • From the "Type" dropdown menu select the "CMS Static Block"
    • From the "Design Theme" dropdown menu select your theme
    • When done, click the "Continue" button
  4. Adjust the Widget Storefront Properties:

    TermsFeed Magento 2 - Widgets - Add Widget - Storefront Properties - Title added - All Store Views assigned

    For the Widget Storefront Properties add:

    • In the "Widget Title" type "Footer Links" (for example)
    • For the "Assign to Store Views" select the "All Store Views" option
  5. In the "Layout updates" section click the "Add Layout Update" button:

    TermsFeed Magento 2 - Widgets - Add Widget - Storefront Properties - Layout updates - Display on All pages in CMS Footer Links container

    This step will add a new layout and open additional settings. Add the following:

    • For the "Display" section, from the dropdown menu select "All pages"
    • For the "Container" section, from the dropdown menu select the "CMS Footer Links," and
    • The chosen template will be shown here and it is the "CMS Static Block Default Template"
  6. Scroll up to the "Widget options" section (on the right side). Click the "Select Block" button (on the left side):

    TermsFeed Magento 2 - Widgets - Add Widget - Options - Select Block

  7. The "Select block" opens in a new window. Select the "Footer Links" block from the Block list:

  8. TermsFeed Magento 2 - Widgets - Add Widget - Options - Select Block - Footer Links

  9. Click Save (in the Widget editor):

    TermsFeed Magento 2 - Widgets - Add Widget - Options - Select Block - Footer Links added - Save

We have added the Footer Links Block to the Footer Links Widget, which means that all links added to the Block will be displayed at the footer section of the website.

Please make sure to flush the Magento's Cache.

  1. Go to System > Cache Management to clear the cache:

    TermsFeed Magento 2 - Widgets - Add new - System - Cache Management

  2. Select the columns with "Invalidated" status and click the "Submit" button:

    TermsFeed Magento 2 - Widgets - Add new - System - Cache Management - Select Invalidated and click Submit

  3. Reload the page to see changes:

    TermsFeed Magento 2 - Website - Reload the page to see changes

  4. The Privacy Policy page is linked at the footer of the Magento 2 website:

    TermsFeed Magento 2 - Website - Footer with Privacy Policy page linked and displayed