1

I am finding a way to call my custom created phtml file in Cms page. The file is located in Magento_catalog > product > bestseller.phtml, And the way which I am trying is -

{{block class="Magento\Framework\View\Element\Template" name="test_file" template="Magento_catalog::product/bestseller.phtml"}}

{{block class="Magento\Catalog\Block\Product\View\Description" template="Magento_Catalog::product\bestseller.phtml"}}

But the file is not loading in Cms page. Please help me to do it.

Thanks

  • bestseller.phtml is your custom phtml? – Khoa TruongDinh Mar 28 '17 at 13:42
  • Yes its my custom created phtml file... – Yudi Mar 28 '17 at 14:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.