How do I add a layout to the homepage of my site? The homepage content is NOT a full screen and id like to add a full-width banner with a clickable button on it just like what we have here on this site

However, I tried using the static block for this but it didn't work. I am new to Magento and would really appreciate all the help I can get.

  • which version you are using and are you using any custom theme or RWD theme?
    – inrsaurabh
    Commented Mar 26, 2018 at 6:20
  • I am using version 1.9 and a custom theme. On the custom theme, they used a cms block. On the content tab, they used some HTML div tags which is by default, in a boxed layout, and on the design tab, they used an XML to call on the slider which is in fullwidth.
    – Daniel
    Commented Mar 26, 2018 at 6:26
  • have a look to this first for magento.stackexchange.com/questions/95643/…
    – inrsaurabh
    Commented Mar 26, 2018 at 6:27
  • I am not looking to make the website fullwidth, just to remove the slider and replace with a banner like the website I referenced above.
    – Daniel
    Commented Mar 26, 2018 at 6:30
  • if you know the xml which is calling the slider than you can remove from that section and to call banner you can use static block and call in the fashion
    – inrsaurabh
    Commented Mar 26, 2018 at 6:32

2 Answers 2


How do I add a layout to the homepage of my site?

Suggestion: There is defaults layout which Magento provides which can be easily changed for a page from the backend.


  1. To insert a cms Block directly:

{{block type="cms/block" block_id="your_block_id"}}

  1. You can use widgets for the same

    1. In the Editor toolbar, click on insert Widget
    2. Choose Static Block
    3. Choose the Block you want to insert

In the widget, we can easily call our blocks in the different reference which are created:



in order to create custom layout for Magento 1.x cms pages you have to create a custom module:

Module directory / file(s) structure :





<?xml version="1.0"?><config>
        <Mage_Page />


<?xml version="1.0"?>
                        <PageFullwidth translate="label">

And finally your template file page/home-page.phtml:

<!DOCTYPE html>
    <html lang="<?php echo $this->getLang() ?>">
    <?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('custom_notice') ?>
            <?php echo $this->getChildHtml('header') ?>
            <?php echo $this->getChildHtml('topContainer') ?>
            <div class="main-container col1-layout">
                <div class="main">
                    <div class="col-main">
                        <?php echo $this->getChildHtml('global_messages') ?>
                        <?php echo $this->getChildHtml('content') ?>
            <?php echo $this->getChildHtml('footer') ?>
            <?php echo $this->getChildHtml('global_cookie_notice') ?>
            <?php echo $this->getChildHtml('before_body_end') ?>
    <?php echo $this->getAbsoluteFooter() ?>

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.