Magento 1.9 – How to Call Custom phtml File in Static Block

magento-1.9phtmlstatic-block

In my theme package i create a custom.phtml file in theme_name/default/template/custom/custom.phtml , i want to call this file in static block i try this method :

{{block type="core/template" template="theme_name/default/template/custom/custom.phtml"}}

but nothing appears.

Best Answer

You don't need to include the theme's directory in the template path, Magento will automatically use the current theme and fallback structure. For example:

{{block type="core/template" template="page/html/home.phtml"}}

Or in your case:

{{block type="core/template" template="custom/custom.phtml"}}