Images Alt attribute

Sil

Avatar: Sil

2015-05-21 05:55

Hi guys,

I want to add Alt attribute to the images from my site. Can you tell me where is located the file where I find the script for the images?

<img src="files/200/career-613526_1280_(1).png" alt="HERE IS WHERE I HAVE TO ADD THE ATTRIBUTE BUT I CANNOT LOCATE THE FILE THAT I HAVE TO MODIFY">

Thanks a lot.

» Quick.Cart v6.x

Silviu

deha

Avatar: deha

2015-05-21 11:00

http://opensolution.org/Quick.Cart/docs/?id=en-instruction#1.3.1
You can add the alt attribute by adding decription to the file added to the page.

DEHA

Sil

Avatar: Sil

2015-05-26 12:57

Hi Deha,

Thank you very much for your answer. This partially helped me. After I added the the description to the file the ALT atribute appeard on the subpage itself. But, on the part where I see the titles of the sub-pages I can see, as a preview the images as well, but on the source code there is no ALT description...

The concrete example:
<p style="text-align:justify"><span style="color:#0070c0; font-family:tahoma,sans-serif">I saw a lot of candidates who prefer to add a photo to the CV &ndash; I think everyone can agree that as long as the photo is one business-appropriate this is an Yes &ndash; Yes situation, but when the photo just reflects your look when you were 5 years younger and ready for a night out, I guess you can just drop the idea &ndash; no matter how beautiful your smile is in that picture, you do not want to scare the employer or just be the part of the joke of the day &ndash; keep it professional or if you do not have anything that can go with you &ndash; just forget about it; hopefully there will be many occasions in which you ca show how funny and interesting you can be.</span>&nbsp;</p>
</div><ul class="pages-list"><li><h2><a href="?ok-so-you-made-your-mind">Ok, so you made your mind...</a></h2></li><li><div class="image"><a href="?the-taste-after-bilingual-people-international-language-recruitment-fair-krakow-25th-april-2015"><img src="files/200/language_fair.jpg" alt="" /></a></div><h2><a href="?the-taste-after-bilingual-people-international-language-recruitment-fair-krakow-25th-april-2015">The taste after Bilingual People International Language Recruitment Fair, Krakow, 25th April, 2015</a></h2></li><li><div class="image"><a href="?here-we-go-–-our-first-event!"><img src="files/200/valiza.jpg" alt="" /></a></div><h2><a href="?here-we-go-–-our-first-event!">Here we go – our first event! </a></h2></li><li><h2><a href="?we-think-that-looking-for-a-job-deserves-to-be-a-journey-with-a-happy-ending!">We think that looking for a job deserves to be a journey with a happy ending!</a></h2></li></ul></article>

Talking about "files/200/valiza.jpg" alt="" and "files/200/language_fair.jpg" alt=""

Please note that this is the source code that I can see on my browser. The thing I am looking for is the file in my c-panel (on the server). Can you advise me which one is ?

Silviu

deha

Avatar: deha

2015-05-28 06:51

Can You send the web address, ti would be easier to see. what excatly element is which.

DEHA

Sil

Avatar: Sil

2015-05-29 17:52

Hi Deha,

here it is. Thank you very much in advance for your valuable help!!!

http://multilingualhr.com/public_html/

Cheers,
Silviu

Silviu

boboo

Avatar: boboo

2015-05-29 19:58

So,
you can search long time in Q.Cart 6.x - there is everything OK.
If You would write this at the beginning, that your script is Q.CMS (NOT CART) you would get the answer at the same morning.

Your version is a bit "uncomplete" in the /core/files.php file.
In the line 38 there is a query:

SELECT files.iFilefiles.iPagefiles.iSizefiles.sFileName FROM files


and as You can see, the "sDescription" is not asked, however later used in setting "alt"-attribute in getDefaultImage function.

So, to solve this problem add just files.sDescription to the query SELECT in the line 38.
Thats all.

boboo :-)

Sil

Avatar: Sil

2015-06-02 13:14

Hi boboo,

Thank you very much for your valuable help. Sorry for not placing my query to the right topic. I'll do my best for the next time. I am quite newbie in here but I am learning fast.

All is working fine now!!

Silviu

Back to top
about us | contact