Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I put a navigation block in the left sidebar, the title of the block is in a darker color. I like it. But when I put the same navigation block in any of the four bottom sections, the title goes away. Is there a way to keep the darker color in this area? Thanks.
Comment | File | Size | Author |
---|---|---|---|
#2 | Screenshot.png | 133.55 KB | prajaktam |
Comments
Comment #1
jvdurme CreditAttribution: jvdurme commentedThat's a tough one, since left and bottom blocks are generated with a different set of CSS classes.
You can get the darker color around the title if you add the color to this class in style.css:
But there will still be a border around the title. That's some padding I guess, but I have no idea how you can remove that. Sorry... ;)
Install Firebug in Firefox to see all CSS styling that Danland uses. Then compare left and bottom blocks. It's really helpful.
Comment #2
prajaktam CreditAttribution: prajaktam commentedHello,
@BillMounce: I have tried adding the blocks in the bottom four columns. And added the same styling as left sidebar blocks to this. So here are the steps.
1) Go to the danland theme folder. Open up danland.info file and uncomment the following line
;stylesheets[all][] = local.css
ie, replace with this:stylesheets[all][] = local_sample.css
2) Now open up the local_sample.css file and add the following css to it.
Save this changes.
3) Visit the admin/build/block page on your site and add block to the Bottom 1, Bottom 2 Bottom 3 and Bottom 4 regions.
4) Go to admin/settings/performance page and clear the cache.
5) You can see the same styling applied to these blocks as the left sidebar blocks. I am attaching a screenshot for the same. Also no need to add blocks to each of the bottom region. If you add block in only one region then also it will pick up the same styling.
Hope this helps.
Thanks,
Prajakta
Comment #3
danpros CreditAttribution: danpros commentedHi prajaktam,
Thanks for answering the question.
Dan