I really like the News Show Pro GK5 module but I can't understand why it doesn't allow you to put alternative text to images in their different styles.

In my case I use the latest version 2.1.16 under Joomla 4.3.4. on a local error server. The module works perfectly, but SEO doesn't like it...

I have used the Portolio Grid style, selecting that the images are the first of the articles. I have tried to put the origin of the images with the introduction image which does have alternative text... failure in the module that shows the articles of that category.

I have read other interesting threads after searching this forum, tried the proposed solutions and nothing at all.

https://www.joomlart.com/forums/d/40000-the-news-show-pro-gk5-module-still-does-not-display-alt-image-tags-after-6-years by @johnnyc1951 with @saguaros

https://www.joomlart.com/forums/d/32418-nsp-gk5-alt-image-problem/ by @manhta

I would appreciate any suggestion on this matter. Thanks in advance!

This text is written from Google Translate, please forgive any errors.

Hello

It is precisely one of the references that I have included in my post and that I have valued positively.

After reading it again, I have a doubt if before adding the line that is in bold, something else should be done, specifically when it refers to:

johnnyc1951 Work around:
Make a template over-ride of Imageshow pro5
Edit over-ride com_content/view.php

Thanks for the help

    jmcm1973

    He meant to override the com_content layout in module, you can copy file:

    /modules/mod_news_pro_gk5/tmpl/com_content/view.php

    to this folder in template:

    /templates/your_template/html/mod_news_pro_gk5/com_content/ (Create this path if it doesn't exist now)

    And customize file in this place.

    I have proceeded to:

    copy view.php file to /templates/shaper_helixultimate/html/com_content

    I have edited said file, adding the line $alt_text = $item['title']; as seen in the screenshot

    I have deleted the view.php file in the path modules/mod_news_pro_gk5/tmpl/com_content

    There is no modification to the images, which still do not show alt

    What have I done wrong?

    thanks for the help and patience

    You copied to wrong folder, it should be:

    /templates/shaper_helixultimate/html/mod_news_pro_gk5/com_content/view.php

    Thank you very much for the correction, it already works perfectly in standard mode !!

    Unfortunately, it does not work in grid portal mode. That alt="" command is not shown and there is no view.php file to modify here...
    I have tried, in the articles, to add an introduction image with a description, although it is intended to show the first image of the article.

    Looking at the module files, I have located "echo" from the image. I don't know if it will help and maybe by adding some command here I will be able to show it.

    Thanks for the invaluable help.

    You can create this path:

    /templates/your_template/html/mod_news_pro_gk5/portal_modes/portfolio_grid/

    and copy this JS file into this place (unzip first)

    scriptjqueryjs.zip
    2kB

    Again thank you very much @saguaros

    Indeed the page works perfectly and all the GK5 images have their alternative text

    I consider the thread correctly resolved and reiterate my thanks.

    Write a Reply...
    You need to Login to view replies.