Skip to main content

How to remove subscriber box and footer links from footer in Magento 2

Preconditions:
I installed Magento 2 with sample data used luma theme for customised right now .

Now I'm trying to remove Footer subscriber form  in mycustom theme which I created before. 



As I tried to remove it from layout by
m2\vendor\magento\theme-frontend-luma\Magento_Theme\layout\default.xml


Just need to copy paste 
   <referenceBlock name="form.subscribe" remove="true" />

if you want to remove footer then you remove block like this.  

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

in above file file m2\vendor\magento\theme-frontend-luma\Magento_Theme\layout\default.xml

default.xml file used to change layout of page if file doesn't exist then you can create your own file
<?xml version="1.0"?>

<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

     xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">

<body>

     <referenceBlock name="form.subscribe" remove="true" />

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

</body>

</page>

This file can be used to include files like CSS , Javascript files, or change your layout by default if you want to override default layout of existing theme in your custom theme.. 

Comments

  1. nice informative post. Thanks you for sharing.
    Magento 2 is a re-invisioning of the platform bringing it up to date with the latest development practices as a foundation for future features and growth.
    Magento 2

    ReplyDelete
  2. Looking to Hire Laravel Developer? Look no further! Connect Infosoft Technologies offers experienced developers to bring your web projects to life with seamless functionality and performance.

    ReplyDelete

Post a Comment

Popular posts from this blog

MAGENTO 2.2.1, 2.1.10 AND 2.0.17 PATCHES | SECURITY UPDATE

Magento Commerce and Open Source 2.2.1, 2.1.10 and 2.0.17 contain multiple security enhancements. Cross-Site Scripting (XSS). Local File Inclusion (LFI). Authenticated Admin user remote code execution (RCE)   . Arbitrary File Delete vulnerabilities APPSEC-1325: Stored XSS in Billing Agreements Type                  :          Cross-Site Scripting (XSS, stored) CVSSv3 Severity  :         5.5 (Medium) Known Attacks    :        None Description         :    An administrator with limited privileges can create Billing                                                   Agreements with embedded cross-site scripting elements that            ...

Magento 2.2.1 open source Released| New features and Bug Fixes

This release includes numerous functional fixes and enhancements. Highlights Look for the following highlights in this release: Integrated Signifyd Fraud Protection is now available in Magento Open Source. See  Signifyd fraud protection  for more information. Ability to implement translations from themes. We’ve also significantly reduced JavaScript-related translation issues. Improvements to how the PayPal Express Checkout payment method processes virtual products. Multiple enhancements to product security. See  Magento Security Center  for more information. Twenty-two community-submitted bug fixes and multiple pull requests. Looking for more information on these new features as well as many others? Check out  Magento 2.2 Developer Documentation . Security enhancements Magento 2.2.1 includes multiple security enhancements. Although this release includes these enhancements, no confirmed attacks related to these issues have occurred to ...