cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Adding Custom Blocks in right sidebar in rwd custom theme

Problem in Adding Custom Blocks in right sidebar in rwd custom theme

Hi there,

I've customized a theme based on rwd theme in magento 1.9.4 cuz I wanted my new theme to be respnsive and surely rwd theme is!

What I understand is that in rwd theme, content and col-left sidebar is in wrapper tag, and col-right sidebar is in another tag (outside wrapper).

When I add cms block or content block to col-left ( using <reference name="left"> in my local.xml), in  home page and other pages my customs block is inside col-left (that should be. no problem so far).

When I add same block to col-right ( using <reference name="right"> in my local.xml), in home page the block is in col-right column (no problem), but it is not in col-right column in other pages! (the block jumped out of col-right, so it covers all the width of page!)

how can I add block to pages other than Home page to right-col ,and locate it inside right column properly

thanks

1 REPLY 1

Re: Problem in Adding Custom Blocks in right sidebar in rwd custom theme

Put Your Block in local.xml in default handler. Please Check at your block, if all div tag are close or not.

<default>
	<reference name="left">
    	<block name="mtb.template.left" type="core/template" template="page/mtb/mytemplate.phtml" />
	</reference>
	<reference name="right">
    	<block name="mtb.template.right" type="core/template" template="page/mtb/mytemplate.phtml" />
	</reference>
</default>
OpenSource Expert | OpenSource Technologies | www.opensourcetechnologies.com
Magento plugins released: http://www.opensourcetechnologies.com/product/product-category/magento-extensions