Gossamer Forum
Home : Products : Links 2.0 : Discussions :

how Do i Edit the way Category description look?

Quote Reply
how Do i Edit the way Category description look?
How Do i edit the way Category description look? It seems to be indented when it shows up. I also would like to change the font size too. I didn't see it in any of the template, So I'm guessing i have to edit it in a script? Let me know. Thanks!
Quote Reply
Re: [MadCool] how Do i Edit the way Category description look? In reply to
You need to edit site_html_templates.pl, located in the /admin folder.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [MadCool] how Do i Edit the way Category description look? In reply to
Wink It is an easy Job. You don't have to do anything with the scripts, the only thing you should do is to add the HTML in the description box. (like if you want the font bold then you should put <b>your description</b>). Also you can put image in your description(like <img src="your image">).
Quote Reply
Re: [soft2k] how Do i Edit the way Category description look? In reply to
I'm pretty sure putting HTML in the description box won't work. (Actually, I just tried it, and it did not...) You do need to change the site_html_templates, sub site_html_print_cat. These terms are used:

<DL> = Definition List <DT> = Definition Term <DD> = Definition Detail



Remove/replace those codes to alter appearance; it is normal for <DD> to indent whatever it contains.


Leonard
aka PerlFlunkie
Quote Reply
Re: [soft2k] how Do i Edit the way Category description look? In reply to
Trust me soft, you need to edit site_html_templates.pl, by;

Code:
# 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">new</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>|;
}

I've done it before, so i know it works Wink

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [MadCool] how Do i Edit the way Category description look? In reply to
You should be able to change the size of fonts, indents etc. by editing the links.css file.