0

I need to disable or hide all elements/blocks related to Newsletter. As of the moment, I knew only 2 places on where these things exist:

  • Footer (subscribe by entering your email address)
  • Create Account Page (sign up for newsletter checkbox)

Thanks in advance!

1

To hide newsletter in default.xml of your active theme

<?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>

check at : vendor/magento/module-newsletter/view/frontend/layout/default.xml if magento is installed using composer

1
  • That won't remove the subscribe to newsletter checkbox in the registration screen. – Adrian Lopez Dec 12 '19 at 11:10
0

I confirmed this with my fellow developer that the ff. sections are the locations of the blocks/elements related to Newsletter:

•Footer (subscribe by entering your email address) •Create Account Page (sign up for newsletter checkbox) •Account Dashboard

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.