Try the Demo

Magento Forum

   
Static Block on Home page
 
Shepstar
Sr. Member
 
Total Posts:  121
Joined:  2008-07-14
 

Hello,

I’m trying do display a static block just on the home page. not on all pages and it should be beneath the shown products. So for example:

<Head>
<Slider>
<9 Products>
<Static Block> <-- This should be new
<Footer>

I managed to insert it beneath, but now it shows on all pages and not just the home page. I can’t find the template file where you can insert it beneath the products.
So I inserted it in the 2columns-right.phtml file this way:
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('aboutus-home')->toHtml(); ?>

Thanks for all helping infos

 
Magento Community Magento Community
Magento Community
Magento Community
 
magestore
Enthusiast
 
Avatar
Total Posts:  961
Joined:  2009-08-07
Viet Nam
 

Hi Shepstar,

To display only one static block on the home page, you can edit CMS homepage in admin panel and
go to tab “Content”, add this code:

{{block type="cms/block" block_id="aboutus-home"}}
Hope this helps.

Best Regards,
Magestore

 Signature 

Mega Menu brings flexible configuration to store’s navigation Menu
Magento Extensions and Templates: Affiliate, Store pickup, Gift-wrap, Gift voucher, 1stepcheckout, Auction…
Magento Affiliate - Full-functioned Magento extension to run Affiliate program at $99

 
Magento Community Magento Community
Magento Community
Magento Community
 
Shepstar
Sr. Member
 
Total Posts:  121
Joined:  2008-07-14
 

This is correct but then it will be above the products and not beneath them. Because the products don’t show in the cms page.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top