I have newsletter signup block on my front page that I want to remove. However I can't seem to find it anywhere. With development mode I can see that it is being rendered from app/design/frontend/TemplateMonster/Spiceli/Magento_Newsletter/templates/subscribe.phtml and that it is Magento\Newsletter\Block\Subscribe from this two information is there a way to can remove it?
Add a comment |
1 Answer
You can remove this block completely via layout with remove="true":
app/design/frontend/TemplateMonster/Spiceli/Magento_Newsletter/layout/default.xml
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="form.subscribe" remove="true"/> </body> </page> - 2thank you that works; just so I know where was this define in the first place?Ahdee– Ahdee2017-03-12 05:32:36 +00:00Commented Mar 12, 2017 at 5:32
- Take a look this layout:
vendor/magento/module-newsletter/view/frontend/layout/default.xmlKhoa Truong– Khoa Truong2017-03-12 05:33:54 +00:00Commented Mar 12, 2017 at 5:33
