Closed (won't fix)
Project:
Block Theme
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2009 at 16:05 UTC
Updated:
9 Nov 2010 at 07:00 UTC
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?
Comments
Comment #1
dvness commentedI'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.
Comment #2
m.rademacher commentedI assume you're talking about the Views module. I don't even have that installed, so I don't think that's my problem.
Comment #3
dvness commentedYes, 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.
Comment #4
m.rademacher commentedThanks for the tip, I'm attempting to use the Block Class module now.
Comment #5
Chani commentedI 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.
Comment #6
dvness commentedI 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).
Comment #7
Sam Dark commentedWorks for me even with view generated blocks.
Comment #8
amateescu commentedIs this still an issue?
Comment #9
amateescu commentedClosing for now but feel free to reopen if you still need help with this.