Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Adding Height and Width to Images
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: Adding Height and Width to Images
#32289
Adding Height and Width to Images 11 Years, 7 Months ago Karma: 0
Hi All, I'm trying to find a way to add the height and width tags to the images in image slider. Does anybody know how to do this and which file needs to be edited?
Thanks in advance.
The administrator has disabled public write access.
 
#32291
Re:Adding Height and Width to Images 11 Years, 7 Months ago Karma: 748
Hello,

Do you mean "ARI Slider" or "ARI Image Slider" extension?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#32294
Re:Adding Height and Width to Images 11 Years, 7 Months ago Karma: 0
Sorry,I mean ARI Image Slider
The administrator has disabled public write access.
 
#32295
Re:Adding Height and Width to Images 11 Years, 7 Months ago Karma: 748
See "prepareSlides" method in <joomla_directory>\modules\mod_ariimageslider\mod_ariimageslider\kernel\ImageSlider\class.ImageSlider.php file.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#32320
Re:Adding Height and Width to Images 11 Years, 7 Months ago Karma: 0
Thanks for the advice. I am a little confused as to which parts and how to edit the file. I have 4 images and they are all the same size, 980x300.
Thanks again
The administrator has disabled public write access.
 
#32323
Re:Adding Height and Width to Images 11 Years, 7 Months ago Karma: 748
See the following code:

Code:


if (!empty($slide['width'])) $imgAttrs['width'] = $slide['width'];
if (!empty($slide['height'])) $imgAttrs['height'] = $slide['height']; 



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 123