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

How to add bootstrap css to Magento 2 theme | Magento Developer's Diary

what I need to do is to include bootstrap to my theme (currently i'm working on luma theme) to customized it in my own requirement . later on I will use blank theme.let's start May be this is wrong way to do but I do this way. Comments are welcomed to correct me. Preconditions: 1. Magento 2.2.0 installed with sample data (luma & blank theme)  Expected Layout:  Result:  add my css to file My_Magento2_folder(m2)/pub/media/style.css .half-web{ padding:0; margin:5px 0px; width:100%; height:359px; background-color:#ccc; display:block; } .full-web{ padding:0; margin:5px 0px; width:100%; height:200px; background-color:#bec894; display:block; } .container { padding-right: 5px; padding-left: 5px; margin-right: auto; margin-left: auto; } .row { margin-right: -5px; margin-left: -5px; } .col-xs-1, .col-sm-1, .col-md-1, { position: static; min-height: 1px; padding-right: 5px; padding-left: 5px; } and html design on homepage block in backend ...

Magento 2 Shared Packages

The purpose of Shared Packages is to organize your Composer modules Shared Packages functionality gives developers more fine-grained control for organizing code.  Developers that already have or envision having various products in their portfolio (whether they be extensions or themes) that share common code and libraries will want to take advantage of Shared Packages.  This functionality allows developers to market their products as a set and increase their sales.  A developer can specify, for example, that in order for customers to run extension B, customers must first purchase and install extension A. Creation of shared packages is relevant only for products for the Magento 2.0 platform.  All shared code and shared libraries can be zipped and uploaded one-by-one (one zip file per module) via the “Shared Packages” tab. I recently submitted my magento 2 packages successfully with status Ready to use.