I have a basic design question regarding the top navigation menu. I would like to apply class="current" to the <li> tag when someone clicks. Here is the code snipped:
I would like to highlight, apply the "current class" when someone click on New Product, or apply the highlight on Contact Us when someone clicks on it.
Don't I need to make some changes to the HeaderMenu.ASCX file, where I have the menu structure code? I have used CSS and Ajax before and was able to use just one "active" class from the CSS and apply necessary changes upon click.
I am sure I have to make some modification to the ASCX file as well.
This would not work because the page does not retain the selection. As an example, If I click on "Contact Us" tab from the home page, since the Web page changes, CSS does not retain my click. Additionally, if I use the a:visited option, I will have two selection one for the home page and one for Contact US since I visited both pages.
I believe this must be done within the ASPX page not the CSS. Your suggestion can definitely work if I was using CSS + Ajax.
Thank you very much for your respond. I really cannot see the initial PHP script since the server only outputs pure HTML source code. Additionally, I was hoping to get some hint in ASP.NET than PHP.
I installed all available nopCommerce templates to see if they support this feature. Unfortunately, no template has any support for this feature.
I am sure this is a very basic request but no one has provided any feedback except you. I am sure some people have already used this feature on their Websites.
Apparently, this is the only store that was featured on nopCommerce support "active tab" feature on the top navigation menu: http://www.artjersey.net/Default.aspx
I think I got some hints. I believe the CategoryNavigation.ascx and ManufactureNavigation.ascx have the highlight feature that I am looking for. I just need to study the source code and try to write my own.
I would like to have dynamic Menu on top as well as the content on the tab should be managable from admin part. Will need to change any source code or any setting to accomplish the task.