Jump to content

Add width and height attribute to product miniatures


Recommended Posts

Hello, I'm trying to add height and width attribute to product miniatures showed on category pages. 

On PS1.6 I do something like this:

width="{$homeSize.width}" height="{$homeSize.height}

I tried doing the same on PS.17 with file /themes/classic/templates/catalog/_partials/miniatures/product.tpl, but it doesn't works.

Do you know how this can be done?

Link to comment
Share on other sites

I think you are better off just hardcoding it, since in any case it won't likely change. I would say it's not a good idea to do that anymore though, and it would be even better to use dynamic image sources (srcset), but that would need a module/core mod

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...