Aligning the Article Title?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Tebinas
Posts: 2
Joined: Thu 17. Jun 2004, 10:13

Aligning the Article Title?

Post by Tebinas »

Hi folks,

I've been trying out WCMS for a couple of days, and it's really impressing (very easy).

But...I've met my first obstacle that I've been unable to fix. I've tried to search the forum, but no luck. I want to center align the article titles, but they simply refuse do so... :?


Image


I've isolated the articleHead class in the default CSS and put it at the top:

.articleHead {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 21px;
text-align: center;
color : #666666;
}



But this doesn't appear to work, but other changes in the properties in the articleHead class do... :?:

WCMS produces following HTML code:

<td valign="top" width="5%" bgcolor="#FFFFFF"><img src="img/leer.gif" width="5" height="1" alt="" /></td>
<td valign="top" width="75%" bgcolor="#FFFFFF"><br><br>
<a name="jump2"></a><span class="articleHead">Vakre og sjarmerende Altea</span><div class="articleSummary"><P align=center><FONT face="Verdana, Arial, Helvetica, sans-serif" color=#666666 size=1><STRONG>Middelalderbyen Altea</STRONG></FONT></P>




I hope somebody could help me out... I suspect my lack of CSS is the source of the problem here... :wink:


Tebinas
SiSte
Posts: 30
Joined: Tue 9. Mar 2004, 18:34
Location: hamburg
Contact:

Post by SiSte »

try this:

change file phpwcms/include/inc_conf/conf.template_default.inc.php

line 99:
// article default
$template_default["article"]["title_before"] = '<div align="center" class="articleHead">';
$template_default["article"]["title_after"] = '</div>';
Tebinas
Posts: 2
Joined: Thu 17. Jun 2004, 10:13

Post by Tebinas »

It works like a charm!! :D

Thanks a lot!

Tebinas
SiSte wrote:try this:

change file phpwcms/include/inc_conf/conf.template_default.inc.php

line 99:
// article default
$template_default["article"]["title_before"] = '<div align="center" class="articleHead">';
$template_default["article"]["title_after"] = '</div>';
Kalaschnikow
Posts: 3
Joined: Mon 16. Jan 2006, 18:32

Post by Kalaschnikow »

For the newer Versions (1.2.6 DEV) use this Code. The other Code will not work properly!

Code: Select all

// article default
$template_default["article"]["title_before"] = '<div align="center"><h1>';
$template_default["article"]["title_after"] = '</h1></div>';
$template_default["article"]["subtitle_before"]		= '<div align="center"><h2>';
$template_default["article"]["subtitle_after"]		= '</h2></div>';
$template_default["article"]["summary_before"]		= '<div class="articleSummary">';
$template_default["article"]["summary_after"]		= '</div>';
Post Reply