Gossamer Forum
Home : Products : Links 2.0 : Discussions :

font size for description

Quote Reply
font size for description
Hello. I want to make the description on the homepage a smaller font and unbold it.
I checked sub site_html_print_cat and it has the following code:

# This routine determines how the list of categories will look.
# We now use a table to split the category name up into two columns.
# For each category you can use the following variables:
#
# $url : The URL to go to that category
# $category_name : The category name with _ and / removed.
# $category_descriptions{$subcat}: The category description (if any).
# $numlinks : The number of links inside that category (and subcategories).
# $mod : The newest link inside of that category.
#

my (@subcat) = @_;
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i);
my ($half) = int (($#subcat+2) / 2);

# Print Header.
$output = qq|<div class="margin"><table width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">\n|;

foreach $subcat (sort @subcat) {
($description) = @{$category{$subcat}}[2];

Am I in the right area? What do I need to chage?

Also, I've been using and altering the site_html_templates.pl which is from a Yahoo template download. Is site_html.pl being used in any way?

Thanks.

Mike...back again

Quote Reply
Re: font size for description In reply to
Close...look further down...$description....

Regards,

Eliot Lee
Quote Reply
Re: font size for description In reply to
I see $description underneath it, but isn't that for the link description? I need the catagory description. ??

# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new"><img src="http://www.p4k-tv.com/images/new.gif"></sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;

Mike

Quote Reply
Re: font size for description In reply to
In Reply To:
but isn't that for the link description?
NOPE....It is for the CATEGORY Description...hmm...sub site_html_print_cat. Cat...short for CATegory...Wink

Regards,

Eliot Lee
Quote Reply
Re: font size for description In reply to
I always thought CAT was short for catastrophe :)

I must be dumb here but in the following code ( i assume this is the line to change)

$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));

...what do I change to reduce the size of the category font and unbold it?

what is qq, dd and what does this line mean?

(!($description =~ /^[\s\n]*$/));

Final question...why is there air????

Mike

Quote Reply
Re: font size for description In reply to
Either replace the class object of decript if you are using the links.css file OR remove the following codes:

Code:

<span class="descript">


AND

Code:

</span>


THEN add your own FONT codes around the $description variable in the most set of codes you've pasted...

---------Definitely a recording--------------

Regards,

Eliot Lee
Quote Reply
Re: font size for description In reply to
Eliot,

Thanks.

Changing:

$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));

To

$output .= qq|<dd><font size=-1>$description</font></dd>| if (!($description =~ /^[\s\n]*$/));

Worked.

Mike

Quote Reply
Re: font size for description In reply to
You're welcome....Please try to search the forums more carefully since this has been discussed quite a few times with codes and suggestions.

Regards,

Eliot Lee