How to move block left to right

Magento is flexible for move blocks from one position to other. its very easy to move block using XML.

if you want to move any block from left to right then you just need to change name=”left” to name=”right” Below is example code.

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

Here is in example have set name=”right” that means this block display in right side.

Rakesh Patel on sabtwitterRakesh Patel on sabrssRakesh Patel on sabgoogleRakesh Patel on sabgithubRakesh Patel on sabfacebookRakesh Patel on sabemail
Rakesh Patel
Website Devloper at Divine Web Technology
Hello Viewers,
My self Rakesh Patel, And i am website developer from last 6+ Year, I am working as a full time freelancer from last 2years. My skills are Core PHP, Wordpress, Magento, HTML, CSS, Joomla, Drupal, Smarty.

I really like to share my skill to all my developer friends, And also request you all, Please share your skill here so other developer can get help.

Leave a Reply

Your email address will not be published. Required fields are marked *