I Want to insert a static block in this way <?php echo $this->getChildHtml('headerimage') ?> in 1 column.phtml now I want this thing to be worked only for one page say Homepage which is 1 Column not for all the other 1 column pages now can I restrict this changes only to my homepage??

2 Answers 2


No you cannot do this if you make changes in1column.phtml it will effect all the pages with that template rather than doing this insert the required static block in your pages content by going into CMS->Pages->Homepage-Content and paste the static block in that page's content.


Remove your static block from <default> layout handler and put it on home page handler cms_index_index

goto local.xml at app/design/frontend/yourpackage/yourtemplate/layout

        <reference name="header"> <!-- your block reference -->
       <block type="cms/block" name="headerimage">
              <action method="setBlockId"><block_id>headerimage</block_id></action>
  • Thankyou for your answer but can you be more clear what should I put in cms_index_index. Thanks in advance
    – Abdul
    Nov 14, 2014 at 4:26
  • But rather than doing this the above answered procedure is easy and that worked for me anyway thanks for your time
    – Abdul
    Nov 14, 2014 at 4:34
  • Can you please show 1column.phtm code
    – Amit Bera
    Nov 14, 2014 at 5:18

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.