block color

block color

by Amal k -
Number of replies: 4

I just created a new block. but i want to give a color for it like below. I am also using aardvark theme.How to apply the particular color to my custom block.

pic


Average of ratings: -
In reply to Amal k

Re: block color

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

try adding

.block_yourblockname .header {background-color:#ff0000;}

to your customcss in the theme

In reply to Richard Oelmann

Re: block color

by Amal k -

thnks

In reply to Amal k

Re: block color

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Also if you need to add an icon too for that block or anyother block not listed, then look in aardvark/style/blockicons.css files and all the information is there.

Cheers

Mary