Page 1 of 1

small title, large sub-title in article list

Posted: Mon 2. Aug 2004, 18:21
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".

Posted: Wed 4. Aug 2004, 23:14
by Dittohead
bump

Posted: Wed 4. Aug 2004, 23:35
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";

Posted: Wed 4. Aug 2004, 23:57
by Dittohead
duh, I should of cought that. Thanks a bunch!!

Posted: Thu 5. Aug 2004, 02:15
by Dittohead
Hmm, the article_tophead won't change size at all regardless of what I put in the css file for it.

Posted: Thu 5. Aug 2004, 03:56
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.

Posted: Mon 23. Aug 2004, 19:36
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.

Posted: Mon 23. Aug 2004, 19:52
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.

Posted: Mon 23. Aug 2004, 19:56
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.

Posted: Mon 23. Aug 2004, 19:58
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">';

Posted: Mon 23. Aug 2004, 20:48
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;
//

Posted: Thu 26. Aug 2004, 22:17
by kac
Deleted by kac