Blocks unaffected by BlockTheme Selection
m.rademacher - March 4, 2009 - 16:05
| Project: | Block Theme |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Copied from: http://drupal.org/node/390074
I installed BlockTheme in a similar manner to how Bob from mustardseedmedia.com recommends, outlined below:
Install Module
Create theme blankblock|BlankBlock
Change blocks to use BlankBlock theme
Copy block.tpl.php to blocktheme-blankblock.tpl.php
Add blankblock class to blocktheme-blankblock.tpl.php (shown below)
?>
<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block <?php print $block_classes; ?> blankblock">Add CSS for theme1 to style.css (shown below)
/*** BlockTheme CSS ***/
.blankblock {
border: none;
background: #FFF;
padding: 0 0 0 0;
margin: 0;
}But hey, I've still got a border, padding, and margins applied to the blocks I applied this theme to. I even cleared the cache before refreshing the page. What am I doing wrong?

#1
I've noticed that if a block is generated via a view, the block theme doesn't get applied to that block. That *might* be the issue you're facing.
#2
I assume you're talking about the Views module. I don't even have that installed, so I don't think that's my problem.
#3
Yes, I'm referring to the Views module. I'm not sure what's causing your problem. I have found an alternative module that works fabulously (and with the Views module, too, in the event you want to use that in the future): Block Class - http://drupal.org/project/block_class
Anycase, best of luck to you and hopefully someone in the Drupal community will have a solution to the problem you're running into.
#4
Thanks for the tip, I'm attempting to use the Block Class module now.
#5
I can't seem to get this to work at all, either.
I'm not using views (other than a Calendar, but that's not the block I'm attempting to change now).
I've followed the instructions to the letter (I believe), and still nothing.
#6
I would suggest trying the Block Class module, it's leaps and bounds better (because it works AND you can add a plethora of classes to a block, you're not just limited to a specific class).
#7
Works for me even with view generated blocks.