fan4chevy Posted December 7, 2009 Posted December 7, 2009 Anyone know how to give more spacing in between the category links? I want more space on the horizontal section between each of the links and have not been able to find it anywhere. Thank you, Charles
Guest Posted December 7, 2009 Posted December 7, 2009 Charles, In catalog>includes>boxes>categories.php you will find this code: if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br>'; if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } This line: $categories_string .= '<br>'; ads a line break between category names, so if you add ANOTHER <BR> to it, it will double space the Category names leaving more space between them. I hope this is what you were looking for. Chris
burt Posted December 7, 2009 Posted December 7, 2009 If you need more control than a line break, you can also use the css "line-height". You'll find lots of tutorials on the net.
Terminum Posted December 7, 2009 Posted December 7, 2009 If you want to fine tune it more than that to get smaller space than a br, you can add a css class to the categories and use css to specify exactly how much space you want. Check out my posts in this thread for info on how to do that: http://www.oscommerce.com/forums/topic/349276-reformatting-categories-box/page__p__1460432__hl__aCategory__fromsearch__1entry1460432
fan4chevy Posted December 8, 2009 Author Posted December 8, 2009 Thanks guys. It is great to be part of the OS community. We all work together. :thumbsup:
casemaker Posted January 17, 2010 Posted January 17, 2010 I tried to add another <br> but nothing happens. Any suggestions? ................. if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br><br>'; ...................
Recommended Posts
Archived
This topic is now archived and is closed to further replies.