Give Catetgory an ID or Class

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
7 months 2 weeks ago #360163

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!

Last edit: 7 months 2 weeks ago by MyWorld.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 months 2 weeks ago #360164

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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.037 seconds
Powered by Kunena Forum