Apolgies if this is the wrong board to post this question in, but I'm sure someone can point me in the right direction otherwise.

When using the fourseasons theme ( http://drupal.org/project/fourseasons ) I am trying to turn off the right sidebar, as displayed in the demonstration site ( http://www.forward-media.info/ ) The demo site, has several links which modify the layout of the site, something that I'd love to do with my site.

Unfortunately I can't work out how its done, or see documentation showing how it might be achieved. Would someone be able to suggest what I should be looking at changing to achieve this?

cheers,
David.

Comments

yuriy.babenko’s picture

David,

I haven't looked at the theme's code, but I'm assuming that the "right sidebar" is a drupal region. Regions typically contain blocks. If there are no blocks to be displayed in a particular region, or the content of all blocks is empty (nothing), the region will not be displayed. This is probably what is happening with the example... the pages without the sidebar simply don't have any content in it.

If you go to Site Buildings -> Blocks and edit a block, you can set block visibility. This enables you to show (or hide) the block on particular pages. Enter URLs (one per line) relative to the site root. For example, if you want your block to only show up on www.example.com/node/52, then enter "node/52" in the textarea.

Alternatively, you can make a separate page.tpl.php file for some individual pages and simply remove the PHP statement that prints out the region. (It will be something like <?php print $right; ?>)

The first method would be the better way to go.

---
Yuriy Babenko
www.yubastudios.com
My Drupal tutorials: http://yubastudios.com/blog/tag/tutorials

---
Yuriy Babenko | Technical Consultant & Senior Developer
http://yuriybabenko.com

NorthPort’s picture

Thanks Yuriy, I'll try what you have suggested.

Thanks for your help.
- David.