How to Specify image dimensions?

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeHow to Specify image dimensions?

This topic has been marked as not a support question.

Hello,

How do I specify the image dimensions on the front page? the width and height? Thank you

May 1, 2012 at 1:22 am #8484

Hi,

Which image dimensions exactly do you have in mind?

If you mean these from Featured, Latest, Bestseller, or Special modules, then you could take a look at this topic: http://support.themeburn.com/topic/thumbnails-problem

Best,
ThemeBurn team

May 1, 2012 at 9:37 am #8492

Hello,

My featured images on the frontpage. But, I think it applies to all images.

I was using gtmetrix.com to check performance. and it recommended to specify image dimensions. The following image(s) are missing width and/or height attributes. Specifying a width and height for all images allows for faster rendering by eliminating the need for unnecessary reflows and repaints.

http://gtmetrix.com/specify-image-dimensions.html

May 1, 2012 at 8:36 pm #8500

Now we’ve got what you mean :)

Unfortunately, OpenCart by default does not provide the image dimensions to the templates. You will need to hack some files to get this functionality. Here are some topics that discuss the same matter:

http://forum.opencart.com/viewtopic.php?f=121&t=20057
http://forum.opencart.com/viewtopic.php?f=24&t=9249

Best,
ThemeBurn team

May 2, 2012 at 10:48 am #8513
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.