cancel
Showing results for 
Search instead for 
Did you mean: 

Magento applying incorrect css style size to upsell block

Magento applying incorrect css style size to upsell block

Using Luma as parent I have set image size in my theme's view.xml file for "related_products_list" "small_image" to 80/80.

 

On the front end this displays correctly, and I notice that that value gets applied inline as style="width: 80px" too.

 

My problem is that this inline style value is also being applied to my upsell products, despite my upsell product being defined as 300/300. The actual IMAGE is generated correctly, but I'm getting style="width: 80px" applied which is causing the image to be displayed incorrectly.

 

Whatever value I set for the "related_products_list" "small_image" it always gets used as an inline value for the Upsells.

 

Is this a bug? How can I fix this?
I moved the upsell block via layout to page.bottom, not sure if this causes a problem for some reason?

1 REPLY 1

Re: Magento applying incorrect css style size to upsell block

Hello @steven_mccluskey 

It may cause problem if those are using the same class or you haven't defined CSS properly for the respected section

You haven't given the link of the website or the screenshot to get more idea on your issue.

 

Was my answer helpful? You can accept it as a solution.
175+ professional extensions
Need a developer?Hire Magento Developer