I want to have the category folder image sit on top of the category names instead of to left of it.
I think I just need to add a line break somewhere into category.class.php but I can't figure out where exactly.
I'm using version 5.2.0
I want to have the category folder image sit on top of the category names instead of to left of it.
I think I just need to add a line break somewhere into category.class.php but I can't figure out where exactly.
I'm using version 5.2.0
The codes is in function Display(), line 505-512
Change to:Code:if (!empty($image)) { $category .= "<a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\">$image</a> \n"; } $category .= "<b><a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\">$cat_name</a></b> $html_number_of_links \n"; $category .= "$number_of_links\n";
Code:if (!empty($image)) { $category .= "<a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\">$image</a> <br />\n"; } $category .= "<b><a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\">$cat_name</a></b> $html_number_of_links \n"; $category .= "$number_of_links\n";
The code in my page was different than yours. Lines 505-512 were:
But I got it working by putting a break before the cat_name.Code:.= "<b><a href=\"$cat_url\" style=\"$this->cat_link_style\" id=\"cat_$cat_id\">$image $cat_name</a></b> $html_number_of_links \n"; $category .= "$number_of_links\n"; if ($this->show_description) { if (!empty($cat_description)) $category .= "<br />"; $category .= "$cat_desc \n";