![]() |
When Root Cat clicked display sub cat?
Solved by Victor D in post #5 (Works in 4.1.11 confirmed)
How would I get my categories to display sub categories when they've been clicked. For example ____________________________ All Products Shop By Brand (clicked) ------------------------ Kick Butt Catsup Lizards and Gutts Shop By Price Shop By Category ____________________________ |
Re: When Root Cat clicked display sub cat?
|
Re: When Root Cat clicked display sub cat?
You mean in the side menu? Try one of these:
http://www.xcartmods.co.uk/navigation-x-cart-mods-c-3.html |
Re: When Root Cat clicked display sub cat?
Quote:
Yes that's what I want but does it work for 4.1.11? I saw the last post in that thread and someone said they can't get it to work for 4.1.7 I'll test it out but I have to figure out where to place the code. They don't seem to specify where to place the smarty code. |
Re: When Root Cat clicked display sub cat?
Quote:
HTML Code:
and add lines PHP Code:
PHP Code:
I have tested this on 4.1.11 and found no problem |
Re: When Root Cat clicked display sub cat?
Excellent! Thank you very much!
|
Re: When Root Cat clicked display sub cat?
Thanks for the script... but now I want to have current Category/subcategory to be highlighted or active.
Please advice. Thanks |
Re: When Root Cat clicked display sub cat?
Quote:
It's a style sheet thing, it's simple. It'll highlight the current page you're on with whatever text decoration you want for example a:active { text-decoration: underline; font-weight: bold; } Will look like this when active Category 1 Category 2 -Sub -sub2 Category 3 |
Re: When Root Cat clicked display sub cat?
Hey Pepperlady,
Thanks for the reply, but it doesn't work. It does work for Active state on the links, but it doesn't highlight the current category. What I need is to show current category in different color. Cat 1 Cat 2 - Sub Cat 1 - Sub Cat 2 - Sub Cat 3 (Current) - Sub Cat 4 Cat3 Thanks, Nikolay |
Re: When Root Cat clicked display sub cat?
So you mean it needs to look literally like this
cat1 cat2 -sub1 -sub2 -sub3 cat3 and red meaning it's the active sub link? or do you want it highlighted as in a box appears around it when active? Should still work with a: active You'll have to find out the exact css class for the sub cat if it doesn't work. Then apply my method to it. |
Re: When Root Cat clicked display sub cat?
try to change
HTML Code:
to HTML Code:
And put myactivecategory class description in skin1.css |
Re: When Root Cat clicked display sub cat?
Thank you Victor D,
It worked. Exactly what I needed. Nikolay |
All times are GMT -8. The time now is 09:50 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.