- Posts: 966
- Thank you received: 11
Give Catetgory an ID or Class
2 years 7 months ago - 2 years 7 months ago #360163
by MyWorld
Give Catetgory an ID or Class was created by MyWorld
Hi there,
Is it possible to give a category an ID or a CLASS. I am trying to style a category differently than the others but can't figure out how to do that.
It would be nice if we could add an ID or a CLASS to the category.
Thanks!
Is it possible to give a category an ID or a CLASS. I am trying to style a category differently than the others but can't figure out how to do that.
It would be nice if we could add an ID or a CLASS to the category.
Thanks!
Last edit: 2 years 7 months ago by MyWorld.
Please Log in or Create an account to join the conversation.
2 years 7 months ago #360164
by nicolas
Replied by nicolas on topic Give Catetgory an ID or Class
Hi,
While you can't choose an ID or a class for a category, HikaShop does add classes specific to each category automatically.
For example, on the page demo.hikashop.com/index.php/en/hikashop/...ategory/13-men-shoes there is a class hikashop_category_listing_13 in the HTML around the product listing which is specific to the Shoes>Men category.
If you look at another category, like demo.hikashop.com/index.php/en/hikashop/...egory/14-women-shoes you'll see that there is another class instead of the previous one. It is: hikashop_category_listing_14
So basically, it is hikashop_category_listing_ + the id of the category.
While you can't choose an ID or a class for a category, HikaShop does add classes specific to each category automatically.
For example, on the page demo.hikashop.com/index.php/en/hikashop/...ategory/13-men-shoes there is a class hikashop_category_listing_13 in the HTML around the product listing which is specific to the Shoes>Men category.
If you look at another category, like demo.hikashop.com/index.php/en/hikashop/...egory/14-women-shoes you'll see that there is another class instead of the previous one. It is: hikashop_category_listing_14
So basically, it is hikashop_category_listing_ + the id of the category.
Please Log in or Create an account to join the conversation.
Time to create page: 0.094 seconds