× Support for Joomla 2.5 templates is discontinued. This forum category is read-only.

How to specify image dimensions on the template?

More
6 years 9 months ago #2922 by Fructus
Fructus created the topic: How to specify image dimensions on the template?
look at subj. line.

thanx!

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

More
6 years 9 months ago #2925 by marcin
marcin replied the topic: Re: How to specify image dimensions on the template?
Hello,

Which images exactly do you mean?

Regards,
Marcin

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

More
6 years 9 months ago #2926 by Fructus
Fructus replied the topic: Re: How to specify image dimensions on the template?
Hi,

I mean pictures that are part of the template.

When I do Page speed I get message "The following image(s) are missing width and/or height attributes" for all pictures which are part of the template, such as logo, background, etc.

For pictures contained by articles I don't any message like that.

thanx.

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

More
6 years 9 months ago #2928 by marcin
marcin replied the topic: Re: How to specify image dimensions on the template?
Hello,

Image dimensions you need to add to the img tag used in a custom module.
Example:
<img width="100px" height="100px" src="sample.jpg" />

In the case of the logo image, you will have to add dimensions to the img tag inside the index.php file of your template.

Regards,
Marcin

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

More
6 years 9 months ago #2930 by Fructus
Fructus replied the topic: Re: How to specify image dimensions on the template?
ok. I see.

thank you! :)

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

Time to create page: 0.198 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.