different sub category style

  • Posts: 52
  • Thank you received: 0
9 years 6 months ago #231972

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

hi
how can i make difference between main category "image-title" style and sub-category "image-title" style?
is there any class or id to make this difference that i used in css ?

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 6 months ago #231977

Hi,

You can use the class hikashop_product_listing_XX in your CSS where XX is to be replaced by the id of the current main category of the listing.

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

  • Posts: 52
  • Thank you received: 0
9 years 6 months ago #232266

if i have one main category this solution is ok. but i have many main category. i want a class for any sub category

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 6 months ago #232272

Hi,

I'm sorry but I don't see the problem with that.

For the image-title of the main categories you could do like that:
.hikashop_product_listing_XX .image-title, .hikashop_product_listing_YY .image-title{
// css for categories XX and YY
color: blue;
}

And for categories other than XX and YY (so the sub categories), you could do like that:
.image-title{
//css for other categories than XX and YY
color: red;
}
.hikashop_product_listing_XX .image-title, .hikashop_product_listing_YY .image-title{
// css for categories XX and YY
color: blue;
}

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

  • Posts: 52
  • Thank you received: 0
9 years 6 months ago #232338

yes with this css can customize subcategory.
but when add new main category i must add it css name's like "hikashop_category_listing_53" to css file.
i think i must do like this is better:
div[class*="hikashop_category_listing_" ] {//css code}

tanx for replay nicolas .

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

Time to create page: 0.056 seconds
Powered by Kunena Forum