Guest Posted February 29, 2012 Share Posted February 29, 2012 Is there a way to Disable Main category link in the navigation menu. I recently fixed the accordion menu matter which means my sub-categorys load fine therefore I don't want links to the main categories... Anyone know how to do this? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 2, 2012 Share Posted March 2, 2012 Anyone know how to do this? All I wanted to do was disable the hyperlink for Main Category but keep the hyperlink for Sub Categories... anyone?? Quote Link to comment Share on other sites More sharing options...
goober999 Posted March 2, 2012 Share Posted March 2, 2012 the navigation uses element.navigation_tree.php template. if you were to "mess" with the categories, you would do it there. Quote Link to comment Share on other sites More sharing options...
Guest Viola Posted March 5, 2012 Share Posted March 5, 2012 Try adding this line to your skin's js file: $('#menu.accordion>li>a').click(function(){return false;}); Quote Link to comment Share on other sites More sharing options...
Guest Posted March 5, 2012 Share Posted March 5, 2012 Try adding this line to your skin's js file: $('#menu.accordion>li>a').click(function(){return false;}); Thanks Viola, I haven't tried it yet and I will do so, but does this function disable all links in my nav menu? I just wanted to disable the main category link but leave the sub-category links (the one that folds out) working. Please confirm? Quote Link to comment Share on other sites More sharing options...
Guest Viola Posted March 5, 2012 Share Posted March 5, 2012 Yes, it will only disable the first level of links. The ">" symbol in a css selector means only direct descendents are affected. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.