Welcome to Geeklog, Anonymous Saturday, July 02 2022 @ 07:52 pm EDT

Geeklog Forums

Block title


Mayan

Anonymous
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.
 Quote

Status: offline

Ook

Forum User
Chatty
Registered: 07/26/06
Posts: 39
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.
"A conclusion is the place where you got tired of thinking."--Steven Wright
 Quote

Mayan

Anonymous
Ook, you are a life saver!
Big Grin
It works, thank you!

:banana:

You d man!
Smile
 Quote

Status: offline

Ook

Forum User
Chatty
Registered: 07/26/06
Posts: 39
OK, Dirk just pointed out that the H tag helps promote search engine indexing.

http://www.geeklog.net/forum/viewtopic.php?showtopic=76741 ,

Maybe not as important for blocks.

Still, time to do it better. Idea

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.
"A conclusion is the place where you got tired of thinking."--Steven Wright
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
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.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

Ook

Forum User
Chatty
Registered: 07/26/06
Posts: 39
My mistake. The original tag that I was referring to for title in the blockheader templates of the professional theme was H2.
"A conclusion is the place where you got tired of thinking."--Steven Wright
 Quote

All times are EDT. The time is now 07:52 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content