By electronicmonkey on
I want the blocks on the right side bar to look different from those on the right. I have tried defining different blocks for each region ( such as block-right_sidebar.tpl.php) but it doesn't just work. Does anyone have any ideas ? I am working with bluemarine.
Comments
While pages and individual
While pages and individual blocks use templates, regions do not. A starting place is to use css to style the blocks. Generally a region in page.tpl.php has a surrounding div with id (or class). You can use the id to apply css to only blocks in that region.
Sorry not too clear. I am
Sorry not too clear. I am using bluemarine (in Drupal 5) and the sidebar is typically declared as
And the block as
If I want a different type of block for the right sidebar what do I add to this or to the filename?
To style the blocks with css
To style the blocks with css you would want to start your css selector with
td.sidebar-right .blockso for example to make all the titles red you could add the following to the end of your themes style.css file.Not sure what you mean by "a different type of block"
Good thanks for requesting.
Good thanks for requesting. As it is I have used photoframe module to give the blocks rounded corners . The coding:
However I want the blocks on the right sidebar to have plain square corners different from elsewhere
I am guessing that is your
I am guessing that is your block.tpl.php. I would replace
<div class="photoframe-slimround-with-white-background">with<div class="photoframe ">and then in your css replace photoframe-slimround-with-white-background with just photoframe. Then to change/remove the frame from the one region use something likeThis rule needs to be after any general rule for photoframe.
I am afraid that is how it
I am afraid that is how it should be written to make the output come as rounded corner . I thought of naming this block.tpl and the creating another block-sidebar_right.tpl without the
<div class="photoframe-slimround-with-white-background">but nothing changed . Curiously a block-content.tpl works just how I want it - no rounded corners.Simple solution after all.
Simple solution after all. Remove
<div class="photoframe-slimround-with-white-background">from block.tpl and style every block separately.