0

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

My phtml file is under:

app/design/frontend/rwd/josefsteiner/template/home.phtml

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?

0

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

app/design/frontend/rwd/josefsteiner/Magento_Theme/templates/home.phtml

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"}}
| improve this answer | |

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.