Jump to content

Changing the data-dept of one 'ul li' on tpl file


Recommended Posts

Hello, 

I would like to change on the source file of a module the data-depth of one li a tag. 

On the back office I added 5 different categories, which results in 5 different li a tag all with the data-depth"0". I would like to change only the first li a in order for him to have a data-depth of "1" and therefore a different css class. 

Would anyone have any recommendation or tips on how to achieve this (changing only the first data-depth to "1" and leave the others at "0"? Do not hesitate to come back to me if my message is not clear. 

Many thanks,

Prestashop: 1.7.6.7

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