i want to add a static block that consist of some formatted text i want to add at the bottom of this code, but i dont know how to add the below static block content <h2><strong>Productos m&aacute;s Vendidos</strong></h2>

and here is the code of my homepage:

<reference name="header">
<block type="cms/block" name="header_slider">
    <action method="setBlockId"><block_id>header_slider</block_id></action>
<reference name="left">
 <remove name="cart_sidebar" />
 <remove name="catalog.compare.sidebar" />
 <remove name="tags_popular" />
 <remove name="right.poll" />
 <remove name="right.reports.product.viewed" />
 <remove name="right.reports.product.compared" />
 <remove name="wishlist_sidebar" />
<block type="cms/block" name="side_banners">
    <action method="setBlockId"><block_id>side_banners</block_id></action>
<reference name="content">
    <block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page">
        <action method="setColumnCount"><columns>3</columns></action>
        <action method="setProductsCount"><count>9</count></action> 
        <action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
<action method="unsetData"><key>cache_lifetime</key></action>
     <action method="unsetData"><key>cache_tags</key></action>

The cms block i want to put will be here after this last </reference>

what code should i use to add the statick block?


closed as unclear what you're asking by Rajeev K Tomy, liyakat, MeenakshiSundaram R, Marius Aug 13 '15 at 5:59

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Where do you want the static block content to show? The SB content has to be rendered as a child of a block. Depending on which block, it may require modifying a template. – benmarks Aug 12 '15 at 20:50

In Cms Page Layout -->

 <reference name="right">
        <block type="cms/block" name="your_block_id_1_name" before="-">
            <action method="setBlockId">
        <block type="cms/block" name="your_block_id_1_name" after="-">
            <action method="setBlockId">

CMS Page Content -->

{{block type="cms/block" block_id="home_image-center"}}

In .phtml file

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.