[Skip to main content](#vessel-content)

#   Give Catetgory an ID or Class

##

- **[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")**
- [![MyWorld's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/862-myworld "View MyWorld's Profile") Topic Author
- [ Offline](/forum/user/862-myworld)

Less More

- Posts: 966
- Thank you received: 11
-
-

2 years 7 months ago -  2 years 7 months ago [\#360163](#360163) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  *[Give Catetgory an ID or Class](/forum/25-install-update/908002-give-catetgory-an-id-or-class#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!")* was created by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")*

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: 2 years 7 months ago by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODAwMi1naXZlLWNhdGV0Z29yeS1hbi1pZC1vci1jbGFzcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

2 years 7 months ago [\#360164](#360164) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Give Catetgory an ID or Class](/forum/25-install-update/908002-give-catetgory-an-id-or-class#360164 "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!")*

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](https://demo.hikashop.com/index.php/en/hikashop/categories-listing/display-in-div-div/category/13-men-shoes) there is a class hikashop_category_listing_13 in the HTML around the product listing which is specific to the Shoes&gt;Men category.
If you look at another category, like [ demo.hikashop.com/index.php/en/hikashop/...egory/14-women-shoes](https://demo.hikashop.com/index.php/en/hikashop/categories-listing/display-in-div-div/category/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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODAwMi1naXZlLWNhdGV0Z29yeS1hbi1pZC1vci1jbGFzcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.055 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
