I have tried many ways to call the custom phtml file in Static Block but none of them seems to work.
My file is located - app/design/frontend/Magento/MyTheme/Magento_Theme/extra/test_view.phtml
How i call the file in CMS Static Block -
{{block class="Magento\Framework\View\Element\Template" name="test_view" template="Magento_Theme::extra/test_view.phtml"}}
And when i add the static block to main content area, it just displays the code thats above. Am i doing something wrong?
wysiwyg editor
enable. When you add code disable editor first