Jump to content

remove link from category (parent)


Recommended Posts

Hi

How do I remove the links from the parentcategories?

I want the parent category (like 'iPod') top open the menu and not go to the page with subs. So basically I want the parentcategory to behave like the '+' and '-', open/close the tree.

Any hints?

Link to comment
Share on other sites

  • 2 weeks later...

Hello,

Solution:

1st step - edit file 'category-tree-branch.tpl', located in yourshop/modules/blockcategories/

replace

{$node.name|escape:htmlall:'UTF-8'}


with

{$node.name|escape:htmlall:'UTF-8'}



2rd step - edit file'global.css', located in yourshop/themes/prestashop/css/

remove or comment classes

div#categories_block_left span.OPEN { 
       background: no-repeat left top url('../img/icon/less.gif'); 
}

div#categories_block_left span.CLOSE{ 
       background: no-repeat left top url('../img/icon/more.gif'); 
}

div#categories_block_left span.grower{
   display:block;
   float:left;
   background-position: 0px 3px;
   background-repeat: no-repeat;
   width:9px;
   height:15px;
   margin: 0 0 0 -10px!important;
   margin: 0 0 0 -6px;
   padding: 0;
}

Link to comment
Share on other sites

  • 1 year later...


hello, thanks but this solution is totally opposite that was requested :
you have cleared ajax code and now only shows category page
..or could be that I have modified it wrong? Now my categories block only links to categories, but
dynamic animations have disapeared




correction

Your modification is perfect! I was mistaked because I was made changes on "THEME" path, not at "MODULES" path

but now I can't understand why it was not working? is supposed that theme path is execute after modules isn't it?

thanks! regards

Link to comment
Share on other sites

  • 3 months later...

Your modification is perfect! I was mistaked because I was made changes on "THEME" path, not at "MODULES" path

but now I can't understand why it was not working? is supposed that theme path is execute after modules isn't it?

thanks! regards


Ussualy files from theme must to override the main files. I will test again in few moments and I will let you know.

Answer: For me is work but i have a similar problem with the languages files from the modules. I wait answers in other topics about this.

Let me know if you fixed.
Link to comment
Share on other sites

  • 1 year later...

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