Closed (fixed)
Project:
Block Class
Version:
6.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2009 at 00:26 UTC
Updated:
25 Mar 2009 at 15:04 UTC
Not sure what I'm doing wrong... im not a coder, so I'm not surprised.
I'm using Shannon's wonderful Nitobe theme, maybe I'm not placing the code in the right part of the block.tpl file.
This is my block.tpl:
print $block_class; "> if (function_exists(block_class)) print block_class($block); if (!empty($block->subject)): if (($block->region == 'header') || ($block->region == 'masthead')):
print $block->subject else:
print $block->subject endif;
endif;
print $block->content
This is the code i'm placing in the style sheet for now:
.simpleblock {
border: 1px solid #333;
}
Then in the configure block, ive tried both "simpleblock" & ".simpleblock" in the CSS class.
Any ideas? Thanks....
Comments
Comment #1
ctalley5 commentedSorry for the poor code post.... lets try that again...
Comment #2
todd nienkerk commentedHere's why it's not working:
...Should be:
You need to insert the Block Class module snippet inside the closing quote for
class="".Comment #3
ctalley5 commentedThat worked... thanks for the quick help!
I notice the block theme gets wiped when inserted in Panels.... Does that require more customization, or is that something this module would not be capable of adapting with?
Comment #4
ctalley5 commentedI spoke too soon.... you cannot just rely on the block settings, at the bottom of the panel page, you have to add the CSS class (for anybody who has the same question).
Thanks for your help Todd.
Comment #5
ctalley5 commentedComment #6
todd nienkerk commentedctalley: Can you document which version of Panels you are running for those who may read this issue later on?
Comment #7
ctalley5 commentedAbsolutely, sorry about that... i'm running Panels 6.x-3.0-alpha2 . I'm not sure if it's the same on 2.0 or not.