jDownloadsownloads.com


Author Topic: No "alt" tag  (Read 856 times)

0 Members and 1 Guest are viewing this topic.

Offline UweS

  • Newbie
  • *
  • Posts: 31
No "alt" tag
« on: 03.08.2018 13:45:46 »
Hello!

I have a problem with the file_pic. There is no alt tag set for the file image. I include the download with {jd_file file==xxx} in my article. (Example: https://www.csm.de/de/produkte/can-minimodule/19-can-admm)

In the download area there is set the file name as alt text.

Thx

Offline ColinM

  • Moderator
  • *
  • Posts: 4.040
Re: No "alt" tag
« Reply #1 on: 04.08.2018 11:26:26 »
Hi
I confirm, Thanks for pointing out.
Colin

Offline UweS

  • Newbie
  • *
  • Posts: 31
Re: No "alt" tag
« Reply #2 on: 29.08.2019 14:37:44 »
Bug is already there and a lot of work for every jDownload update...

Offline ColinM

  • Moderator
  • *
  • Posts: 4.040
Re: No "alt" tag
« Reply #3 on: 30.08.2019 13:06:28 »
Hi
Thanks for the reminder!  Adding in the code to include an alt= is surprisingly quite complex but I will ask for it in the new jD3.9 series.
Colin

Offline Arno

  • Administrator
  • ***
  • Posts: 12.565
    • jDownloads.com
Re: No "alt" tag
« Reply #4 on: 03.09.2019 12:08:59 »
Please note that in this case the image is only for decoration.
In my opinion it is not really important to fill out here the alt tag. Or not?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline UweS

  • Newbie
  • *
  • Posts: 31
Re: No "alt" tag
« Reply #5 on: 04.09.2019 09:46:39 »
Hi,

SRC and ALT are required for IMG in html. There are a lot of alerts in my SEO Tool too. :)


Quick fix for my records and twimc:

plugins / content / jdownloads / jdownloads.php

Line: 846,915,927,1634,1665,1674 search for
Code: [Select]
alt=" " and set to 
Code: [Select]
alt="'.$files[$i]->file_pic.'"


an other possibility would be to set the alt tag to alt="" (NULL) for accessibility. (https://www.w3.org/WAI/tutorials/images/decorative/) The whitespace is the problem.
« Last Edit: 04.09.2019 10:01:32 by UweS »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.565
    • jDownloads.com
Re: No "alt" tag
« Reply #6 on: 04.09.2019 13:22:53 »
Hi,excuse me but I cannot find any alt tag with a space (like alt=" ").

But I will add the filename in the next version.

Edit:also this is not correct:

$files[$i]->file_pic
it should be:
$files->file_pic
« Last Edit: 04.09.2019 13:31:50 by Arno »
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!