Can someone help me highlight current category (make it bold, like Classic Menu) in the Flyout Menu? Thanks.
http://angelcorp.net/zencartscottou/...&products_id=1
Can someone help me highlight current category (make it bold, like Classic Menu) in the Flyout Menu? Thanks.
http://angelcorp.net/zencartscottou/...&products_id=1
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Glad to hear your reply, DrByte.
It's highlighted in Classic Menu but not in Flyout Menu. I intentionally leave both categories box there so that you can see the difference.
I tried to add following clause to 'categories_ul_generator.php' but didn't work out:
if ($category['current']) {
if ($category['has_submenu']) {
$result .= '<span class="category-subs-parent">' . $category['name'] . '</span>';
} else {
$result .= '<span class="category-subs-selected">' . $category['name'] . '</span>';
}
} else {
$result .= $category['name'];
}
Could you tell me how to make current category bold in the Flyout Menu, same as that in Classic Menu?
Thank you very much.
I don't know if the flyout menu code has structure to allow current path highlighting (apparently not), but I do know that Categories Dressing has that ability, and can be turned into a flyout menu with the ch_categories option and a few CSS rules added, as has been discussed in the mod's support thread (search the thread for flyout).
Thank you for your advice, gjh42. I'll work on it during weekend.
The ideal situation would be a kind of combination of flyout menu and classic menu.
Show (and highlight) subcategories under category when selected (user can turn off via admin if prefer not to show subcategories), and show flyout menu when mouse over.
That will be very user friendly.
gjh42,The ideal situation would be a kind of combination of flyout menu and classic menu.
I followed your instructions and worked out this feature. Thank you.
http://angelcorp.net/zencartscottou/...&products_id=7
The last point I definitely need your help is to make it show subcategories under currently selected category, same as Classic Menu does. In that way, users will have a better idea of their current place. (Probably looks better also.)
Thanks a lot.
Bookmarks