7

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?

enter image description here

1 Answer 1

11

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> 
2
  • 2
    thank you that works; just so I know where was this define in the first place? Commented Mar 12, 2017 at 5:32
  • Take a look this layout: vendor/magento/module-newsletter/view/frontend/layout/default.xml Commented Mar 12, 2017 at 5:33

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.