small title, large sub-title in article list

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Dittohead
Posts: 23
Joined: Mon 26. Jul 2004, 01:07

small title, large sub-title in article list

Post by Dittohead »

You'll notice int his page here that the title is very small ("reactor" is the title) and hte sub title is much much larger ("random simplicity" is the sub-title): http://www.dittobox.net/index.php?fp_4hk

How to I change the font sizes for these? Thanks!

EDIT: I added a new article, thus this new article tookover the old on'es position on the page. New title is "Living Room.", sub title is "Modern Style".
Dittohead
Posts: 23
Joined: Mon 26. Jul 2004, 01:07

Post by Dittohead »

bump
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Hi Dittohead,

you must change the following parts in the frontend.css


Title: articleList_tophead
Subtitle: articleList_topsubhead


Because there is this Text in the conf.template_default.inc.php

$template_default["top_headline_before"] = '<span class="articleList_tophead">';
$template_default["top_headline_after"] = '</span>';
$template_default["top_headline_class"] = "articleList_tophead";
$template_default["top_subheadline_before"] = '<span class="articleList_topsubhead">';
$template_default["top_subheadline_after"] = '</span>';
$template_default["top_subheadline_class"] = "articleList_topsubhead";
$template_default["top_text_before"] = '<span class="articleList_toptext">';
$template_default["top_text_after"] = '</span>';
$template_default["top_text_class"] = "articleList_toptext";
Dittohead
Posts: 23
Joined: Mon 26. Jul 2004, 01:07

Post by Dittohead »

duh, I should of cought that. Thanks a bunch!!
Dittohead
Posts: 23
Joined: Mon 26. Jul 2004, 01:07

Post by Dittohead »

Hmm, the article_tophead won't change size at all regardless of what I put in the css file for it.
sean
Posts: 30
Joined: Fri 28. May 2004, 09:09

Post by sean »

All you have to do is to log in to your admin panel, and edit the css file from there. From there, you could set the size, color, and the format of the fonts for the title and the subtitle.
Dittohead
Posts: 23
Joined: Mon 26. Jul 2004, 01:07

Post by Dittohead »

I hate to bump this to the top but after getting back from moving and then looking at the end product/HTML code, we've got mismatched quotes:

Code: Select all

<div style="color:#333333;padding:20px;><span class="articleList_tophead><a href="index.php?id=4,18,0,0,1,0">Fake area lights</a></span>
Notice the class attribute on the span element for "articleList_tophead" doesn't have the last quote on it, I'm going to see what I can find for code in the PHP files and change it if need be.

A rendering bug perhaps?

Validator complains about this:
Line 71, column 72: an attribute value literal can occur in an attribute specification list only after a VI delimiter

...0px;><span class="articleList_tophead""><a href="index.php?id=4,18,0,0,1,0">F

Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value".

Line 71, column 137: end tag for element "SPAN" which is not open

...8,0,0,1,0">Fake area lights</a></span><br><img src="img/leer.gif" width="1" h

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
Last edited by Dittohead on Mon 23. Aug 2004, 19:53, edited 1 time in total.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Where can we see this in action. Your DIV style starts out with quotes, too, but are unfinished.

Nevermind, it is now changed apparently to this:

Code: Select all

<div style="color:#333333;padding:20px;><span class="articleList_tophead""><a href="index.php?id=4,18,0,0,1,0">Fake area lights</a></span><br><img src="img/leer.gif" width="1" height="2" alt="" /><br /><span class="articleList_toptext"><p class="paragraphs">
~KINDA~ looks like something of your own doing.
Last edited by DeXXus on Mon 23. Aug 2004, 19:57, edited 1 time in total.
Dittohead
Posts: 23
Joined: Mon 26. Jul 2004, 01:07

Post by Dittohead »

Hmm, after looking around it seems many other attributes have mismatched quotes.

conf.template_deafult.inc.php code has all the proper quotes in place, but when it translates into html they're missing.

This causes parsing errors to occur, thus some formatting and styling doesn't work. I'm not sure what to do now.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

My guess would be you messed with "conf.template_default.inc.php"

EDIT: Oops, didn't check for quick replies :wink:

Make sure you use single-quotes where necessary:
example:

Code: Select all

$template_default["top_text_before"]        = '<span class="articleList_toptext">';
Dittohead
Posts: 23
Joined: Mon 26. Jul 2004, 01:07

Post by Dittohead »

A small section of my conf.template_default.inc.php:

Code: Select all

//
$template_default["top_listentry_before"]   = '';
$template_default["top_listentry_after"]    = '';
$template_default["top_headline_before"]    = '<span class="articleList_tophead">';
$template_default["top_headline_after"]     = '</span>';
$template_default["top_headline_class"]         = "articleList_tophead";
$template_default["top_subheadline_before"] = '<span class="articleList_topsubhead">';
$template_default["top_subheadline_after"]  = '</span>';
$template_default["top_subheadline_class"]      = "articleList_topsubhead";
$template_default["top_text_before"]        = '<span class="articleList_toptext">';
$template_default["top_text_after"]         = '</span>';
$template_default["top_text_class"]                     = "articleList_toptext";
$template_default["top_readmore_before"]        = " ";
$template_default["top_readmore_link"]          = "more…";
$template_default["top_readmore_after"]         = "";
$template_default["top_headline_space"]         = "<br><img src=\"img/leer.gif\" width=\"1\" height=\"2\" alt=\"\" /><br />";
$template_default["top_subheadline_space"]      = "<br><img src=\"img/leer.gif\" width=\"1\" height=\"4\" alt=\"\" /><br />";
$template_default["top_count"]                          = 1;
//
kac
Posts: 29
Joined: Tue 16. Mar 2004, 21:04

Post by kac »

Deleted by kac
Post Reply