How do I add a block to the home page only above the content section, but below the navigation to spread across the page whilst still using the two-column template?

I am using Magento version 1.9.

See image:

Enter image description here

5 Answers 5


You don't need to create a module at all. You can use Widgets in Magento 1.4+:

Click on CMS > Widgets:

enter image description here

Click on "Add a new Widget Instance":

enter image description here

Select "CMS Static Block" and the name of your theme:

enter image description here

Then, under 'frontend properties' give it a title and click "Add Layout Update", and configure it as shown to display only on the home page in the main content block:

enter image description here

Under Widget Options select the static block you want to display:

enter image description here

  • This is the best of all three solutions... Commented Jul 2, 2014 at 11:11
  • Is there a way to do this in Magento 2?
    – kia4567
    Commented Nov 23, 2017 at 22:05

Create local.xml under app/design/frontend/your package/your template/layout/

And Put the code

<?xml version="1.0"?>
<layout version="0.1.0">
        <reference name="root">
            <block type="core/template"  name="my.vblock" before="content" template="page/home/myblock.phtml" after="breadcrumbs" />
  • That is a good method... Commented Jun 30, 2014 at 16:52
  • Thank's for this! But I'm trying to do it before the breadcrumbs. I tried before="breadcurmbs" but it says the XML is invalid. How can I make this work? Commented Dec 9, 2014 at 4:04
  • @AlyssaReyes If you used 'breadcurmbs', you could try 'breadcrumbs' :p Commented Sep 20, 2016 at 9:46

Try this it's always works

<reference name="after_body_start">
    <block type="core/template"  name="block_name" template="template/template.phtml" />

Here's a really quick way to do it...

Create a module:

<?xml version="1.0"?>

Then add the following to your config file

<?xml version="1.0"?>
                <homepage_layout translate="label">
                    <label>Homepage Layout</label>

And in your theme folder app/design/frontend/YOURTHEME/default/template/page/1column-home.phtml

add this:

    <?php echo $this->getChildHtml('head') ?>
<body<?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?>>
<?php echo $this->getChildHtml('after_body_start') ?>
<div class="wrapper">
    <?php echo $this->getChildHtml('global_notices') ?>
    <div class="page">
        <?php echo $this->getChildHtml('header') ?>
**<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('custom_block')->toHtml(); ?>** 
        <div class="main-container col1-layout cms-home">
            <div class="main">
                <?php echo $this->getChildHtml('breadcrumbs') ?>
                <div class="col-main">
                    <?php echo $this->getChildHtml('global_messages') ?>
                    <?php echo $this->getChildHtml('content') ?>
        <?php echo $this->getChildHtml('footer_before') ?>
        <?php echo $this->getChildHtml('footer') ?>
        <?php echo $this->getChildHtml('global_cookie_notice') ?>
        <?php echo $this->getChildHtml('before_body_end') ?>
<?php echo $this->getAbsoluteFooter() ?>

Then in your Magento admin create a static block called 'custom_block' or whatever and add it to 1column-home.phtml after the header:

<?php echo $this->getChildHtml('header') ?>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('custom_block')->toHtml(); ?>

Be sure to add some content to the static block and select your new homepage layout from the design tab in CMS pages...


Can try layout update

following code like this

<reference name="top.container">
    <block type="core/template"

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.