0

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

Phtml file location

app/design/frontend/{Package}/{theme}/Magento_Newsletter/templates/subscribe_footer.phtml

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?

0

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

1
  • Thanks, I tried this but it doesn't work – user2240778 May 6 '20 at 14:08

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.