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

#   Add Custom Class and or ID to Product Containers

##

- **[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")**
- [![ichimonban's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30985.png)](/forum/user/30985-ichimonban "View ichimonban's Profile") Topic Author
- [ Offline](/forum/user/30985-ichimonban)

Less More

- Posts: 31
- Thank you received: 1
-
-
- [](http://www.michford.com)
-

11 years 1 month ago [\#217428](#217428) by [ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")  *[Add Custom Class and or ID to Product Containers](/forum/26-product-category-display/879872-add-custom-class-and-or-id-to-product-containers#217428 "-- url of the page with the problem -- :   harlequinnejuice.com/index.php/eliquid-ejuice-shop  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : latest  How Do I Apply CSS ID and or Class to each product container? ie the &quot;hikashop&#95;products&#95;container&quot;")* was created by *[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")*

-- url of the page with the problem -- : [ harlequinnejuice.com/index.php/eliquid-ejuice-shop](https://harlequinnejuice.com/index.php/eliquid-ejuice-shop)
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : latest

How Do I Apply CSS ID and or Class to each product container? ie the "hikashop_products_container"

---

MicahFord.com
VOLT2.com \| KLEANALL.com \| GRAVITYMedia.co

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzk4NzItYWRkLWN1c3RvbS1jbGFzcy1hbmQtb3ItaWQtdG8tcHJvZHVjdC1jb250YWluZXJzP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

11 years 1 month ago [\#217462](#217462) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add Custom Class and or ID to Product Containers](/forum/26-product-category-display/879872-add-custom-class-and-or-id-to-product-containers#217462 "-- url of the page with the problem -- :   harlequinnejuice.com/index.php/eliquid-ejuice-shop  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : latest  How Do I Apply CSS ID and or Class to each product container? ie the &quot;hikashop&#95;products&#95;container&quot;")*

Hi,

It depends. What are you trying to do ?
It will either require some code modification in the file "listing_div" of the view "product" via the menu Display&gt;Views or maybe it's already possible with normal CSS code.
But not knowing what you want to do exactly, it's hard to answer more precisely.

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

- **[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")**
- [![ichimonban's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30985.png)](/forum/user/30985-ichimonban "View ichimonban's Profile") Topic Author
- [ Offline](/forum/user/30985-ichimonban)

Less More

- Posts: 31
- Thank you received: 1
-
-
- [](http://www.michford.com)
-

11 years 1 month ago [\#217565](#217565) by [ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")  Replied by *[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")* on topic *[Add Custom Class and or ID to Product Containers](/forum/26-product-category-display/879872-add-custom-class-and-or-id-to-product-containers#217565 "-- url of the page with the problem -- :   harlequinnejuice.com/index.php/eliquid-ejuice-shop  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : latest  How Do I Apply CSS ID and or Class to each product container? ie the &quot;hikashop&#95;products&#95;container&quot;")*

I wan to apply the name of the product as a unique CSS ID or at least a CSS Class directly to its container in the list so that I can target it with a unique look and feel, otherwise I have to manualy add individual images for my products ot accomplish the effect I want.

I just want to name the container ie [ div id="normandy" class="hikashop_products_container" ] in markup and "#normandy.hikashop_products_container" in css

even adding a class suffix containing the product ID or similar as well.

This way I can apply only 6 additional classes in my css to obtain the desired effect

Is there really no mechanism already available to accomplish this

Thanks

---

MicahFord.com
VOLT2.com \| KLEANALL.com \| GRAVITYMedia.co

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzk4NzItYWRkLWN1c3RvbS1jbGFzcy1hbmQtb3ItaWQtdG8tcHJvZHVjdC1jb250YWluZXJzP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

11 years 1 month ago [\#217609](#217609) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add Custom Class and or ID to Product Containers](/forum/26-product-category-display/879872-add-custom-class-and-or-id-to-product-containers#217609 "-- url of the page with the problem -- :   harlequinnejuice.com/index.php/eliquid-ejuice-shop  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : latest  How Do I Apply CSS ID and or Class to each product container? ie the &quot;hikashop&#95;products&#95;container&quot;")*

Hi,

There is no hikashop_products_container class in HikaShop, so I'm still not sure where you're trying to add your id.
I'll suppose that your talking about the div hikashop_container of your products listings.
But for that, the classes and ids already available should be enough ?
For example:
.hikashop_category_listing_13 .hikashop_product_column_3.hikashop_product_row_1 .hikashop_subcontainer{
background-color: red !important;
}
will turn the background red for the product 'Normandy, Banana Pudding &amp; Vanilla Wafer' on your listing.

}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzk4NzItYWRkLWN1c3RvbS1jbGFzcy1hbmQtb3ItaWQtdG8tcHJvZHVjdC1jb250YWluZXJzP3RtcGw9bWFya2Rvd24=) 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.058 seconds

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