Posted on: 06/02/07 08:27am
By: Anonymous (Mayan)
Hey guys,
there is something just killing me here. I have been working on this for hours now... :banghead:
I installed new geeklog 1.4.1. with default theme (professional) and I just cant get the block titles to work as I want.
I jsut dont see what is going wrong.
In my other GLs, there are no problems.
So, I need to decrease top and bottom margins to 1px.
In other GLs I run it was simple:
Text Formatted Code
.block-title-left {
background:transparent;
color:#1A3955;
font-weight:bold;
padding-top:2px;
padding-bottom:2px;
text-align:center;
border-bottom:1px solid blue;
border-left:1px solid blue;
border-right:1px solid blue;
border-top:1px solid blue;
font:smaller Arial, Helvetica, sans-serif
But here, no way!
What am I missing, please?
tnx
m.
Re: Block title
Posted on: 06/02/07 03:39pm
By: Ook
Edit blockheader-left.thtml & blockheader-right.thtml.
Change
Text Formatted Code
<H2>{block_title}</H2>
to
Text Formatted Code
<div class="block-title-left">{block_title}</div>
&
<div class="block-title-right">{block_title}</div>
respectively.
You will have to add some font properties to the class.
Re: Block title
Posted on: 06/03/07 04:45am
By: Anonymous (Mayan)
Ook, you are a life saver!
It works, thank you!
:banana:
You d man!
Re: Block title
Posted on: 06/05/07 08:35pm
By: Ook
OK, Dirk just pointed out that the H tag helps promote search engine indexing.
http://www.geeklog.net/forum/viewtopic.php?showtopic=76741[*1] ,
Maybe not as important for blocks.
Still, time to do it better.
Make the classes
.block-box-left h1 and
.block-box-right h1 between the classes
.block-box and
.block-box-left ul in style.css of the professional theme. Be sure to use
margin instead of
padding in all cases:
.block-box {
margin:5px 10px 15px 10px;
}
.block-box-left h1{
background:transparent;
color:#1A3955;
font-weight:bold;
margin-top:2px;
margin-bottom:2px;
text-align:center;
border-bottom:1px solid blue;
border-left:1px solid blue;
border-right:1px solid blue;
border-top:1px solid blue;
font:smaller Arial, Helvetica, sans-serif
}
.block-box-right h1 {
background:transparent;
color:#1A3955;
font-weight:bold;
margin-top:2px;
margin-bottom:2px;
text-align:center;
border-bottom:1px solid blue;
border-left:1px solid blue;
border-right:1px solid blue;
border-top:1px solid blue;
font:smaller Arial, Helvetica, sans-serif
}
.block-box-left ul,
.block-box-right ul {
/* do not indent lists in the blocks too much */
padding-left:20px;
margin-top:0px;
margin-bottom:0px;
}
Season to taste.
In the blockheader templates, switch back to
Text Formatted Code
<H1>{block_title}</H1>
That should work.
Re: Block title
Posted on: 06/06/07 02:42pm
By: beewee
Only use H tags, and certainly H1 tags, only there where you realle need them, and only one H1 tag per page. A H1 tag for blocktitles is just overkill. I suggest you use H1 for a featured story title and H2 for a regular story title.
Re: Block title
Posted on: 06/07/07 03:30am
By: Ook
My mistake. The original tag that I was referring to for title in the blockheader templates of the professional theme was H2.