Community

Help with block class module or changing a block's title

I have a home page with several views blocks. Through block_titlelink module I have changed the block titles to links, but the default theme color for links is no good on block titles.

So, I want to change the color of block titles back to the original one, even if they are links.

It seems block_class module should provide this sort of possibility; I have installed the module, added the required php snippet to block.tpl.php file.

Now in the block administration options I get the option of adding a CSS class, but I can't understand what I'm supposed to do.

I tried adding myblocktitle as a class name, and then going to local.css and adding:

.myblocktitle a:links, .myblocktitle a:visited {
        color: #ffffff;
          }

but this doesn't seem to work. Am I supposed to add the css code directly into the text field in the block administration option or what?

Sorry, I'm sure the answer is easy, but I just can't get it. Can someone give me a hint?

Thank you

Comments

=-=

A link to the site would be beneficial so it can be looked at in firebug for firefox or chromes web dev tools

As VM said a link would help

As VM said a link would help and the answer depends on the theme but I would guess something like

.block h2 a {
...
}

Sorry, the site

Sorry, the site is:

http://www.medicinadurgenza.org

as an example two of the front page blocks have title linking to content views, one is the "Prendi la sonda e lascia il fonendo" the other is "Astuteness Based Medicine"

As you can see both are blue, I want them to be white.

In the first block, myblocktitle class has been added to the options, in the second I tried adding it to advanced options.

Inspecting with firebug I get

class=block-title-link for this element whereas myblocktitle class is applied to the whole top bar.

In any case, I tried umpteen variations of

.block-title-link a:link {
etc.

withut result. If I can fix this without block class module it's ok, would just like this to work!

How

How about a.block-title-link:link {?

Thank you very much. That did

Thank you very much. That did it. No need to use block_class module.

nobody click here