how to make bordered block on slate theme

Events happening in the community are now at Drupal community events on www.drupal.org.
lordkelvin's picture

hi,

I recently installed and modified acquia slate theme onto my site and I absolutely love it.
I just have one thing that bothers me. Unlike the left sidebar, I see that right sidebar doesn't have borders which makes it look very disorganized. I want to know how I can enable the border for the right sidebar.

for your info, my site is: http://www.roflegion.com

Thank you,
Kelvin

Comments

Screen Shot would be nice.

vmenelas's picture

Screen Shot would be nice.

you could've just visited my site...but whatever

lordkelvin's picture

hope this illustration helps

Thankfully this is a very

jeremycaldwell's picture

Thankfully this is a very simple fix due to the way the rounded corners are styled in the theme. Open up the "template.php" and go to line 297.

Change it from:

$rounded_regions = array(sidebar_first);

To:

$rounded_regions = array(sidebar_first, sidebar_last);

Save your updated template.php, clear your site's cache and you should be all set. And if you want the rounded corners to appear on all pages rather than just the front page (which I assume you do), open up the "block.tpl.php" file and go to lines 7 and 27.

Change it from:

<?php
if ($is_front AND $rounded_block):
?>

To:

<?php
if ($rounded_block):
?>

Hope that helps!

-Jeremy

==================================

Eternalistic Designs - www.eternalistic.net
TopNotchThemes - www.topnotchthemes.com

-Jeremy

Eternalistic Designs
www.eternalistic.net

also easy?

plantucha's picture

thank you for solution, for us, who know nothing about programming is your information blessing.

what I have to change to have rounded corners at content, each node or whole content at front page?

Don't think so

jeremycaldwell's picture

I think you'll need to add that manually to the theme as the code above I was referring to was for blocks only. You should be able to grab the HTML output from the blocks and do something similar to the content area in the page.tpl.php though.

-Jeremy

==================================

Eternalistic Designs - www.eternalistic.net
TopNotchThemes - www.topnotchthemes.com

-Jeremy

Eternalistic Designs
www.eternalistic.net

thank you

lordkelvin's picture

thanks so much for your help!
it looks beautiful int he front page block, but in the other pages, the border appears to be broken. (please take a look at attached screenshot)
do you have a fix for this as well?

Thanks,
Kelvin

Weird

jeremycaldwell's picture

Not sure what's going on there, sorry. The changes I suggest above were to be make to an unmodified version of the Slate theme so perhaps you have other changes in your theme that area affecting the sidebar regions? Hard to tell without looking at the code so I would just recommend undoing the changes I suggested and try them again to be sure.

-Jeremy

==================================

Eternalistic Designs - www.eternalistic.net
TopNotchThemes - www.topnotchthemes.com

-Jeremy

Eternalistic Designs
www.eternalistic.net

your a saint

kentjames1980's picture

Thanks to Jeremy for the rounded corner fix - superb!

TNT Themes

Group organizers

Group categories

Type of post

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: