Hello , i have problem with alt on image .. alt atribute dont work in NSP GK5 ;/
how fix it ? any solution ?
NSP GK5 alt image problem
- Edited
i write u on private msg - how make prv msg ?
i dont know how send prv msg here .. can u give your mail ?
rominek You can edit field in your first post: https://prnt.sc/udicnr
- Edited
ok , i wait for your opinion what is wrong with site - why NSPGK5 dont show alt atribute in image ;/
i edit Fields and add FTP info for u
propobly does this have to do with the lack of title attribute in the images?
Ok, thx..
I will wait for update.
maybe you already know something? is there any chance that the change will be introduced by the end of november? possibly by the end of 2020?
- Edited
manhta yes we have that configure , take first image in article .. so u mean .. we need check it with "image and links" option in article ...
and is it possible to manually modify the php files to add this alt / title to the first image from the article? the pictures have alt / title but the NSP GK5 configuration is to take the first picture from the article not from option images & links
changing that number of articles will be a bit problematic .. maybe you can modify a single script to load it?
- Edited
Hi,
You could do this to get first image alt text if not set intro image
File modules\mod_news_pro_gk5\tmpl\com_content\view.php
Add these code to line 234
if (!$alt_text) {
preg_match('/<img.*?alt="(.*?)".*?>/', $item['text'], $matches);
if (isset($matches[1])) {
$alt_text = $matches[1];
}
}
I already modified your site. Please check.
ok , here ofc is .. so we need TITLE atribute ... for display that alt/title when hover the mouse