Where do I define the appearance of the category listing? I found out where to exchange the folder image. But where is the style for the words?
thanks a lot
macangelo
Where do I define the appearance of the category listing? I found out where to exchange the folder image. But where is the style for the words?
thanks a lot
macangelo
Last edited by macangelo; 01-27-2007 at 05:58 AM.
It's in template files. See inside /themes/kosmos/setting.php
PHP Code:/*===================================================
category appearance
===================================================*/
$cat_table_width = "100%";
$cat_cellspacing = "3";
$cat_link_style = "font-size: 11px; color: #000000;";
$cat_path_link_style = "font-size: 11px; color: #000000;";
$subcat_link_style = "font-size: 11px; color: #000000;";
$category_separator = " > ";
$number_of_links_format = " <font color=\"#000000\"><b>(<%\$number_of_links%>)</b></font>";
$number_of_links_format_search_result = " ";
$cat_columns = 2;
$max_sub_cat = 5;
$cat_default_image = $site_url.'/themes/'.$active_theme.'/images/folder.gif';
$cat_description_format = "<a style=\"{font-size: 11px; color: #567E96;}\"><%\$cat_description%></a>";
Thanks!
I´m also having trouble with this. I can´t get rid of the icon "folder.gif". I´m trying to use "transparent.gif", but the category tree keeps showing "folder.gif". Other changes, like font-size etc works fine.
I would also like to be able to minimize the space between each category row. I was thinking something like a padding with a negative value, but that´s not allowed.
$cat_link_style = "font-size: 11px; color: #000000; padding: -10px;";
Hi mphed,
Did you try to replace the file "folder.gif" - it worked for me (I did it before I realized I can set a folder image file in
)Code:$cat_default_image = $site_url.'/themes/'.$active_theme.'/images/folder.gif';
did you try to change the value for cellspacing to minimize the distance between the rows?
They should add up to extra 6 pixel...Code:$cat_cellspacing = "3";
Best
macangelo
You can make it empty
Code:$cat_default_image = '';
Dody´s example should definitely work, but it doesn´t. The source code still gives me
I also emptied the cache. Still can´t change that folder-image. Please advice.PHP Code:name="cat_1"><img src="themes/current/images/folder.gif" border="0" alt="" /
I'm sorry, it may because I use the latest development version (www.nicecoder.com/svn). You can make $cat_default_image empty. If you use 5.3.0, you may follow HTW solution above with transparent image.