Jump to content

Custom CSS style for block title. How?


Recommended Posts

I need to change title style for default module blocktags.

I know i should have own style class for title in blocktags.tpl and style in global.css

 

But i can't see any result.

 

For example i created new class in global.css it is called #mytags it has some styles

 

When i'll try to put this class to blocktags.tpl like this:

<div id="tags_block_left" class="mytags">
<h4 class="mytags">{l s='Tags' mod='blocktags'}</h4>
<p class="block_content">

nothing happend.

 

Who knowd how correctly insert own class to block title in tpl file and global.css?

 

 

Link to comment
Share on other sites

If you created #mytags, then it's an ID, not a class, use .mytags ;)

have changed to .mytags in global.css and in blocktags.tpl to

<div id="tags_block_left" class="mytags">
<h4 class="mytags">{l s='Tags' mod='blocktags'}</h4>
<p class="block_content">

but nothing

Link to comment
Share on other sites

Where did you change the tpl file? Your modifications are not taking place:

 

<div class="block tags_block" id="tags_block_left">

have try to change

to 

<div class="mytags" id="tags_block_left">

and to 

<div class="block tags_block" id="mytags">

nothing

Link to comment
Share on other sites

×
×
  • Create New...