Move the "Left Sidebar Block" to the right

cuhlig - May 17, 2009 - 17:14

Hello,

i started with Drupal last week and all works fine. Now i try to step deeper into. How can i modify a Theme like "The Morning After" to have the left sidebar (block) on the left side and not in the middel? The downloaded theme has both blocks at the right side.

I know some HTML and PHP but what i need is the chain what where to modify.

Regards, Christian

=-=

VM - May 17, 2009 - 17:17

you need to seek out documentation on regions and adjust the theme accordingly. Typically the files you want to look at are your themes .info file, page.tpl.php and style.css

Step by Step

cuhlig - May 23, 2009 - 07:21

Thank you, now i modified the page.tpl.php, i moved the sidebar befor the content an gave them in all situations the right size.

But now i have it all nice working only that the sidebar is shown first under all headers (thats right) the content is shown below the sidebar _not_ on the right side of it but with the wanted position and width.

My CSS knowledge is not so great, the firebug shows an area CONTENT which is placed from the most left side to the right side. The CONTENT-INNER ist placed from the right side of the sidebar to the wanted right side.

Hm ... any Idea?

Learning by Doing

cuhlig - May 24, 2009 - 12:15

Hello, i found the problemes which where based on empty regions but which are painted.

I learned a lot of page.tpl.php, layout.css and firebug.

Now i have a nice working TMA Theme with Blocks left and right to choose.

 
 

Drupal is a registered trademark of Dries Buytaert.