I'm trying to figure out how theme determines which blocks get icons and which don't. The problem I have is that some of my custom blocks don't display icons but, of course, the block titles still space to allow for them.
So I'd like to either get icons working for every block or find a way to style iconless ones so that the title lines up left or center or something.

Comments

Deepika.chavan’s picture

Hi,
Rename local_sample.css to local.css in your theme i.e. '/black_mamba' directory.
Please try adding following css in local.css file to remove the block-icon of each of the blocks and make the title center align.

#sidebar-first div.block div.content, #sidebar-last div.block div.content, #postscript-wrapper div.block div.content {
  background:transparent url(images/block-gradient.gif) repeat scroll 0 0;
}

.block-icon {
  display: none;
}

#sidebar-first h2.block-title {
  padding:4px 8px 1px 8px;
  text-align: center;
}

#sidebar-last h2.block-title {
  padding:4px 8px 1px 8px;
  text-align: center;
}

Rgrds,

Deepika Chavan.

aharown07’s picture

Thanks.
Discovered also that there is helpful info in the icons.css file

aharown07’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.