Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2012
    Posts
    68
    Plugin Contributions
    2

    Default Flyout Menu highlight current category

    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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Flyout Menu highlight current category

    It is already highlighted on your site:
    .

    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.

  3. #3
    Join Date
    Jun 2012
    Posts
    68
    Plugin Contributions
    2

    Default Re: Flyout Menu highlight current category

    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.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Flyout Menu highlight current category

    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).

  5. #5
    Join Date
    Jun 2012
    Posts
    68
    Plugin Contributions
    2

    Default Re: Flyout Menu highlight current category

    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.

  6. #6
    Join Date
    Jun 2012
    Posts
    68
    Plugin Contributions
    2

    Default Re: Flyout Menu highlight current category

    The ideal situation would be a kind of combination of flyout menu and classic menu.
    gjh42,
    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.

 

 

Similar Threads

  1. Highlight Current Link
    By uncharted in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 22 Jan 2012, 04:05 AM
  2. regaining highlight of current ezpage
    By dayaki in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 May 2011, 12:06 PM
  3. Highlight current moreinformation & information sidebox links
    By PhilipB in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Mar 2011, 01:13 PM
  4. Highlight the Current Page with CSS
    By FoodDudes in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 28 Feb 2010, 01:13 AM
  5. highlight current link
    By rob222 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 14 Mar 2008, 03:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR