![]() |
Adding line in between each listed category?
Is there an easy way to add lines between each category listed under the "Categories" menu box? I would like it so each category would have a line seperating them. thanks
|
Go to skin1/customer/categories.tpl and find this code:
Code:
{if $config.General.root_categories eq "Y"} and after the put <HR> You may not want it to place a <HR> after the last category, so one way to do this is put this instead of the <HR>: Code:
{if !$smarty.section.categories.last} This site may help to. http://smarty.php.net Carrie |
wow thanks Carrie that worked like a charm and is exactly what I was looking for. The only thing is that I put the code in place of the <hr> so that it would not add a line to the last category but it is still doing so.
Also, how do I change the distance now between the categories because they are a little furthur apart than I need, and one last question is how do I change the color of the line separating them? Thanks again...I really appreciate all your help. |
Sorry about that. Change the "if" part to this:
Code:
{if !%cat_num.last%} To change the <HR> properties, you'll need to change it in skin1.css I can't think of anything off the top of my head that would shrink the spacing down. You can try removing the since you have the <HR> in there now. I doubt that's going to make a difference though. It's probalby the <HR> properties causing it. You could include an image of a line instead of the <HR>. That may give you more of the look you want. Just put what ever HTML you want inbetween the if statement to change the look between the categories. Glad I could help! Carrie |
This worked great in case anyone else wants to try it...Thanks for all your time and help Carrie!
|
I also implimented this HR line and it works well, however I would like to do the same in my manufactures and help menu boxes
Can anyone tell me which tpls and where to place this code?? Thanx Kirsten |
skin1\modules\Manufacturers\menu_manufacturers.tpl should do it for the manufacturer's and skin1/help.tol should do it for the help area.
Carrie |
Thanx carrie
But I already contacted the xcart ppl and they helped me implement the spacing changes I needed for these other menus and I went with just extra spacing rather than having the line Kirsten |
Nice tip, but how do I implement it in a DHTML menu like the one Cart-labs has. I need it so it only apply to the top categories not the submenus, so everything will stay inside the line.
I already try after the but only afect the submenus. Here is my code: Quote:
|
I would imagine at first glace that it would go after this:
Code:
{if $allcategories[subcat_num].parentid == $categories[cat_num].categoryid && $allcategories[subcat_num].category != $categories[cat_num].category} But you may get a quicker answer asking cart-labs since they would be familiar with this code you posted. Carrie |
All times are GMT -8. The time now is 10:54 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.