redirect top level category

how to:

have the top level category "no click/link" to any page, but show the subcategories within that category.

Thanx

1 answer

Profile photo of Sherlock 0.00 $tone January 15, 2013
Public

Hi dongagon,

You could try as following
Open the file of skin\frontend\default\jm_norite\js\ja.accordion.na v.js you change this js code

HTML Code:

   $ja(document).ready(function() {

	$ja('#ja-sidenav li.level0 > a').addClass ('subhead');
	$ja('#ja-sidenav li.level0 > a').after ('<a href="#" title="" class="toggle">&nbsp;</a>');
	// second simple accordion with special markup
	$ja('#ja-sidenav').accordion({
		active: '.active',
		header: '.toggle',
		navigation: true,
		event: 'click',
		fillSpace: false,
		autoheight: false,
		alwaysOpen: false, 
		animated: 'easeslide'
	});	
	
});

To this

HTML Code:

  $ja(document).ready(function() {

	$ja('#ja-sidenav li.level0 > a').addClass ('subhead');
	$ja('#ja-sidenav li.level0 > a').after ('<a href="#" title="" class="toggle">&nbsp;</a>');
	// second simple accordion with special markup
	$ja('#ja-sidenav').accordion({
		active: '.active',
		header: '.toggle',
		navigation: true,
		event: 'click',
		fillSpace: false,
		autoheight: false,
		alwaysOpen: false, 
		animated: 'easeslide'
	});	
	$ja("#nav li.level0 > a").bind("click",function(e){
	    e.preventDefault();											  
    })
});

I hope that helps !

#1

Please login or Register to Submit Answer

Written By

Comments