How can I override with css the class .hikashop_product_image?

  • Posts: 31
  • Thank you received: 0
4 years 10 months ago #306347

-- HikaShop version -- : HikaShop Business: 4.0.3
-- Joomla version -- : Joomla 3.9.6.
-- PHP version -- : 7.2.13

Hello Nicolas, maybe the solution is very easy but I am having a bit trouble with the web responsive, when the device view becomes smaller the white space under the product image is more because its container has a fixed height. How you can see in the first photo there are the white space under the product image because the container with class .hikashop_product_image has got height with a fixed value. In the second photo the white space there is no more because through the inspect element of Chrome I modified the class by removing the fixed height and now It is responsive. I tried to do the override on my user.css file but doesn't work. The third photo is from Chrome after my override, the second row on the image is my override but it doesn't override the first row (.hikashop_product_image). If I Don't remove that fix height my responsive web doesn't work and the view is very bad. I understood that the css class .hikashop_product_image is in the file index.php.There is something that does not allow me to overriwrite the file. But how can I overwite it if it is possiblle? This is the link of my product list www.tozainetwork.net/brainstorming/index...g&Itemid=469&lang=it
I hope my request is clear. Thank you for your great support.

Attachments:
Last edit: 4 years 10 months ago by Coluccini.

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

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
4 years 10 months ago #306362

Hello,

It's seems that you have an override on your product/listing but can you check this ?
For this go to Main HikaShop Configuration => Display dropdown => Views
Then reproduce my screenshot :

[img size=450px ] i.imgur.com/64LZc68.png [/img]

If you have a little trash icon, then you have an override, my guess is maybe you have in this override some Css command...
The only way to go over it, is to have exactly the same selector, and prioritize your command with an !important, like this :

.Same_class_as_selector {
command: value !important;
}


Hope this will help you.
Regards

Last edit: 4 years 10 months ago by Philip.

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

  • Posts: 31
  • Thank you received: 0
4 years 10 months ago #306366

Thank you Philip. Now It works. I had to write the statement important!. Kind Regards.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum