Magento - Add seo content to Home page end


Look, there are many ways to set any SEO content to home page of your magento website but I am gonna tell you xml layout reference based technique.

Just follow the simple steps as mentioned below:

1- Create a statis block with any name (i am considering name as 'seo_content') and put your content in that block.

2- Open your theme layout cms xml and search for cms_index_index

3- Inside the same tag you need to define mentioned reference call like below :

   <cms_index_index translate="label">
        <label>CMS Home Page</label>
        <reference name="before_body_end">
            <block type="cms/block" name="seo_content" before="insert_after_this_block">
                <action method="setBlockId"><block_id>seo_content</block_id></action>
            </block>
        </reference>
    </cms_index_index>

This is the way if your SEO guy says to set some home page content down the page and is reasonable to set the content with layout as it is safe when you use some catalog layout set in the home page view.


Thanks for your suggestion and comment.

Comments

Popular posts from this blog

MWS (Amazon Marketplace Web Service) API Integration

CURL Basics with Example

YouTube TV | Know All About Features, Subscription & Access