5

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.

1 Answer 1

14

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"}} 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.