I'm trying to call the following phtml file into a CMS block.

Phtml file location


I tried using

{{block class="Magento\Newsletter\Block" template="Magento_Newsletter::subscribe_footer.phtml"}}

And it doesn't show up on the page.

How do I get it to show on the page?

1 Answer 1


I ave seen you code and I found below issue with your code please check it once.

you have called wrong class in block you added in cms page.

Please correct it with below right code.

{{block class="Magento\Newsletter\Block\Subscribe" template="Magento_Newsletter::subscribe_footer.phtml"}}

Hope this will work for you.

Thank you,

Nirav Patel

  • Thanks, I tried this but it doesn't work May 6, 2020 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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