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


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 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.


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 12 Years, 2 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 12 Years, 2 Months ago Karma: 760
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 12 Years, 2 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 12 Years, 2 Months ago Karma: 760
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 12 Years, 2 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 12 Years, 2 Months ago Karma: 760
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