0

I have created custom theme and I want to call copyright.phtml file in a block I have created on admin side. I added this

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

in my block but it's not working

1
  • did you resolve your issue? Commented Jan 29, 2019 at 4:19

3 Answers 3

1

Try this

{{block class="Magento\Theme\Block\Html\Footer" name="copyright" template="Magento_Theme::html/copyright.phtml"}}

Make sure copyright.phtml file exists in your YOUR_THEME/Magento_Theme directory

1

This is Right way of calling your phtml file to cms page

{{block class="Magento\Theme\Block\Html\Footer" name="copyright" template="Magento_Theme::html/copyright.phtml"}}

or you can override this file in your custom theme

0

This is the right way of calling phtml in block Please add space before template

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

Or check if your copyright.phtml is existed in your YOUR_THEME/Magento_Theme directry

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.