Jump to content

désactivé le click au catégories, desactivate a ctegorie click


max9791

Recommended Posts

Bonjour,

je voudrais désactivé le clic au catégories qui admettes des sous-catégorie.

Merci infiniment de votre aide.

 

Hello

i search for method to desactivate click on categorie parent, if they had a categorie child.

thx for help

Link to comment
Share on other sites

Do you mean to automatically open any subcategories under the main category in the category tree?

 

 

If so,

 

look in your <current theme> folder. There should be a folder js.

In this folder is a tools folder, with in it a file treeManagement.js.

Open this file and scroll down until you see

 

 

//collapse every expanded branch

$('ul.tree.dhtml span.grower.OPEN').addClass('CLOSE').removeClass('OPEN').parent().find('ul:first').hide();

$('ul.tree.dhtml').show();

 

 

Then comment out the "grower line"

 

 

//collapse every expanded branch

// $('ul.tree.dhtml span.grower.OPEN').addClass('CLOSE').removeClass('OPEN').parent().find('ul:first').hide(); // <--- This one

$('ul.tree.dhtml').show();

 

Reload your (front)page, and check the result. (Clear browser cache if needed)

 

Hope this helps,

Pascal

Edited by PascalVG (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...