Closed (fixed)
Project:
Block Class
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2010 at 01:37 UTC
Updated:
9 May 2010 at 03:20 UTC
I tried to add class for example bigred in the class box, but it dissapears when i configure the module again. The class does not stick
Can you help
Comments
Comment #1
todd nienkerk commentedI suggest uninstalling the module, deleting it, and installing the 6.x-1.x branch instead.
Comment #2
dietman commentedOk i changed it to 1.3 version
but still I input in the css box of the module this pictureonlycss
and it does not show up, i looked at the source code, tried firebug, everything
why?
Comment #3
todd nienkerk commentedHave you changed your theme's
block.tpl.phpfile to output the classes? You need to add one of the following snippets to that file:print $block_classes;print block_class($block);The end result should look something like these (examples taken from Garland):
<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="clear-block block block-<?php print $block->module ?> <?php print $block_classes; ?>"><div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="clear-block block block-<?php print $block->module ?> <?php print block_class($block); ?>">Comment #4
dietman commentedHere is what i have in my block tpl file, is this the reason css is not showing up?
Comment #5
dietman commentedok i fixed it, but how do i call it the easiest way
The div is very long, can you help me please
<div class="block block-block" id="block-block-2 skinnypods">How do i call it with css this is not working
#block-block-2 skinnypods
I only want to use skinnypods, because that way i will be able to move the block around and will always be able to call it. ??
Comment #6
todd nienkerk commentedYou put the PHP snippet in the wrong place. A
<div>cannot have more than oneid=""value. Move the snippet insideclass="".If you need help learning how to use CSS, please consult an online tutorial, book, or other reference.
Comment #7
dietman commentedok i have changed it, is this correct? I am sorry i am still learning css
<div class="block block-block skinnypods" id="block-block-2 ">Everything is messed up, do I need to remove the id="block-block-2 from the code completely?
And how to I call each individual block, .block or #block is not working
Comment #8
todd nienkerk commentedThe markup you pasted in should work. You now need to use CSS to style the
.skinnypodsclass.Comment #9
dietman commentedthank you for your help
when updating do i need to keep the old files intact?
Comment #10
dietman commentedI used this on login block, put the name loginmodule in the box and it does not show up
the code is this
It does now show up at all.
Comment #11
todd nienkerk commentedPlease be sure you have added the snippet above to whatever theme you're using. Chances are you haven't added the snippet properly or haven't added it to the theme you're using.
Comment #12
dietman commentedi am sorry, it was not login block but admin block, sorry, it works great