I have this issue and I don't know how to solve it.

My phtml file is under:


and i tried to include this phtml file into my CMS site like this:

{{block class="Magento\Framework\View\Element\Template" name="test_block" template="rwd_josefsteiner::home.phtml"}}

But i get always this error:

Error filtering template: Invalid template file: 'rwd_josefsteiner::home.phtml' in module: '' block's name: 'magento\framework\view\element\template_0'

how to fix this issue?


1 Answer 1


If you are using the Magento 2, your PHTML file should be under the


Here rwd is your theme Vendor or namespace and josefsteiner is your theme name

And you have to call it on CMS like

{{block class="Magento\Framework\View\Element\Template" template="Magento_Theme::home.phtml"}}

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.