no alt information for images
News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic:
- GK User
- Wed Nov 16, 2016 8:46 pm
Hello everyone,
I hope you guys are fine and doing well.
I am using same template as refreshed news template with NSPGK 5 and 4.
Recently I have realized that NSP 5 doesnt take alt information from K2 images.
Situation is same also on your demo site.
For example
How can I fix this?
Thanks a lot
Regards
Okan
I hope you guys are fine and doing well.
I am using same template as refreshed news template with NSPGK 5 and 4.
Recently I have realized that NSP 5 doesnt take alt information from K2 images.
Situation is same also on your demo site.
For example
- Code: Select all
<img class="nspImage" src="https://demo.gavick.com/joomla3/news/modules/mod_news_pro_gk5/cache/k2.items.cache.077ab55046ce80eaf9a3ddea999597ca_Genericnsp-192.jpg" alt="">
How can I fix this?
Thanks a lot
Regards
Okan
-
- Junior Boarder
- teitbite
- Sat Nov 19, 2016 2:51 pm
Hi
Solution will depend from style You are using. Can I please see this module on live site ? Or just tell me the style.
Solution will depend from style You are using. Can I please see this module on live site ? Or just tell me the style.
-
- Moderator
- GK User
- Mon Nov 21, 2016 12:59 pm
I have a similar problem. No alt information for images.
I use NSPGK with standard mode.
Please, help!
I use NSPGK with standard mode.
Please, help!
-
- Fresh Boarder
- GK User
- Mon Nov 21, 2016 7:37 pm
Frontpage Header
Module style: gk_style under Gk_news
Module mode: New News - Slider
Module Position: header
Top banner - GK5
Module style: gk_style under Gk_news
Module mode: New News - Slider
Module Position: bannertop
Latest News
Module style: gk_style under Gk_news
Module mode: standart mode
Module Position: mainbody_top
Module style: gk_style under Gk_news
Module mode: New News - Slider
Module Position: header
- Code: Select all
<div class="gkImageArea" style="background-image: url('http://www.hvacspider.com/media/k2/items/cache/d9ce752361d454057c245a6d830e76f3_XL.jpg');"></div>
Top banner - GK5
Module style: gk_style under Gk_news
Module mode: New News - Slider
Module Position: bannertop
- Code: Select all
<img class="gkImage" src="http://www.hvacspider.com/media/k2/items/cache/b02aa2a324e02550b2c16c7a3489589f_S.jpg" alt="" height="120" width="120">
Latest News
Module style: gk_style under Gk_news
Module mode: standart mode
Module Position: mainbody_top
- Code: Select all
<img class="nspImage" src="http://www.hvacspider.com/media/k2/items/cache/633ad04911b9ff78ce6e391fd459409b_XL.jpg" alt="">
-
- Junior Boarder
- teitbite
- Mon Nov 28, 2016 10:34 am
Hi
A fix to that would require changes to every style and every source supported. I'll let programmers know, but it may take some time. Meanwhile, please show me a page with example modules so I'll come up with a script to reuse article title for image.
A fix to that would require changes to every style and every source supported. I'll let programmers know, but it may take some time. Meanwhile, please show me a page with example modules so I'll come up with a script to reuse article title for image.
-
- Moderator
- GK User
- Tue Nov 29, 2016 2:39 pm
I sent PM to you
-
- Junior Boarder
- teitbite
- Mon Dec 05, 2016 5:23 pm
Hi
Try add this to /layout/blocks/head.php
Try add this to /layout/blocks/head.php
- Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('img').each(function(){
if( $(this).attr('alt') == '' || $(this).attr('alt') == undefined ) {
$(this).attr( 'alt', $(this).parent().parent().find('.nspHeader a, .gkTitle a').html() );
}
});
});})(jQuery)</script>
-
- Moderator
- GK User
- Mon Dec 05, 2016 8:11 pm
Hi,
Unfortunately it doesn't work.
I also tried to add to layouts/default.php
I don't know did you check or not but it is so interesting that NSP Gk4 is working well. It shows alt info.
Unfortunately it doesn't work.
I also tried to add to layouts/default.php
I don't know did you check or not but it is so interesting that NSP Gk4 is working well. It shows alt info.
-
- Junior Boarder
- teitbite
- Thu Dec 08, 2016 1:43 pm
Hi
So You mean NSP has started to work after adding my script ? I was designed to only add "alt" to NSP, so if You have same problem in other places please tell me where. Also send me an access to ftp, so I'll be able to test it live.
So You mean NSP has started to work after adding my script ? I was designed to only add "alt" to NSP, so if You have same problem in other places please tell me where. Also send me an access to ftp, so I'll be able to test it live.
-
- Moderator
- GK User
- Fri Dec 09, 2016 7:19 am
It is my bad. Sorry. I had to explain properly.
After tried your code I deleted from
/layouts/default.php
/layout/blocks/head.php
I was trying to say without any change and any code NSP Gk4 works well. It shows alt information.
It didn't happen after add your code.
After tried your code I deleted from
/layouts/default.php
/layout/blocks/head.php
I was trying to say without any change and any code NSP Gk4 works well. It shows alt information.
It didn't happen after add your code.
-
- Junior Boarder
- teitbite
- Sun Dec 11, 2016 2:45 pm
Hi
I'm completely lost right now. Wasn't this question asked because NSP was not showing "alt" informations ?? ;/
Tell me exactly in which module You want to show this "alt", best with a screenshot and send me an access to FTP.
I'm completely lost right now. Wasn't this question asked because NSP was not showing "alt" informations ?? ;/
Tell me exactly in which module You want to show this "alt", best with a screenshot and send me an access to FTP.
-
- Moderator
- GK User
- Thu Dec 29, 2016 3:23 pm
Dear teitbite,
I have NSP4 and NSP5
NSP4 working well and shows alt information.
But NSP5 doesn't work. I mean all NSP5 modules which I use on my website.
I sent admin panel information by PM.
You can check it by your self.
Maybe you missed, in my first message I said also your demo page has same problem. You can fix there and come with solution to here.
Regards
I have NSP4 and NSP5
NSP4 working well and shows alt information.
But NSP5 doesn't work. I mean all NSP5 modules which I use on my website.
I sent admin panel information by PM.
You can check it by your self.
Maybe you missed, in my first message I said also your demo page has same problem. You can fix there and come with solution to here.
- Code: Select all
<img class="nspImage" src="https://demo.gavick.com/joomla3/news/modules/mod_news_pro_gk5/cache/k2.items.cache.077ab55046ce80eaf9a3ddea999597ca_Genericnsp-192.jpg" alt="">
Regards
-
- Junior Boarder
- teitbite
- Mon Jan 02, 2017 8:17 pm
Hi
So I understood You correctly and my code was exactly to help with that problem. I've just copied it to /layout/blocks/head.php and "alt" works just fine. Please check.
So I understood You correctly and my code was exactly to help with that problem. I've just copied it to /layout/blocks/head.php and "alt" works just fine. Please check.
-
- Moderator
- GK User
- Thu Jan 05, 2017 6:48 am
Thats awesome.
Thank you so much.
Regards
Thank you so much.
Regards
-
- Junior Boarder
- teitbite
- Mon Jan 09, 2017 1:52 pm
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
-
- Moderator
- GK User
- Tue Mar 07, 2017 5:14 pm
Hy teitbite,
it's possible to know how to solve the image missing alt tag on thumbs?
thanks in advance,
Luke
here an example: https://www.toptourofitaly.com/best-tou ... -from-rome
it's possible to know how to solve the image missing alt tag on thumbs?
thanks in advance,
Luke
here an example: https://www.toptourofitaly.com/best-tou ... -from-rome
-
- Senior Boarder
- GK User
- Tue Mar 07, 2017 5:24 pm
Hy,
i've added the code by myself into head.php as you suggestet to abbath..
and it's working fine...
sorry for asking you before try?
i've added the code by myself into head.php as you suggestet to abbath..
and it's working fine...
sorry for asking you before try?
-
- Senior Boarder
- teitbite
- Fri Mar 10, 2017 9:29 am
Hi
No problem. Script should work on any site with NSP, but I believe there are module styles with a different build where this still may not work, so I'm leaving this thread open in case someone will need to ask me for such case.
No problem. Script should work on any site with NSP, but I believe there are module styles with a different build where this still may not work, so I'm leaving this thread open in case someone will need to ask me for such case.
-
- Moderator
- GK User
- Fri Mar 10, 2017 12:42 pm
Hy Teitbite,
sorry for asking you again, but you're right...
with the module mode "product gallery 2" the script doesen't work...
You can check into the home page of www.toptourofitaly.com
Thanks in advance,
Luke
sorry for asking you again, but you're right...
with the module mode "product gallery 2" the script doesen't work...
You can check into the home page of www.toptourofitaly.com
Thanks in advance,
Luke
-
- Senior Boarder
- teitbite
- Thu Mar 16, 2017 5:10 pm
Hi
Here same code adjusted for ProductGallery2 NSP style:
Here same code adjusted for ProductGallery2 NSP style:
- Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('img').each(function(){
if( $(this).attr('alt') == '' || $(this).attr('alt') == undefined ) {
$(this).attr( 'alt', $(this).parent().parent().find('.nspHeader a, .gkTitle a, h4 a').html() );
}
});
});})(jQuery)</script>
-
- Moderator
- GK User
- Wed Mar 22, 2017 10:17 am
Great
Thanks!
L.
Thanks!
L.
-
- Senior Boarder
- teitbite
- Sat Mar 25, 2017 3:23 pm
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
-
- Moderator
22 posts
• Page 1 of 1