Page 1 of 1

image title tag missing

Posted: 01 Sep 2023, 14:49
by betei
hi there,

at current there is only the alt tag in the product picture. The title tag is missing and for seo reasons is this
an disadvantage. Does anyone know how to implement this? It would be enough if we could have an title tag
that is the same (same value) like the alt tag.

regards,
Norman

Re: image title tag missing

Posted: 04 Sep 2023, 13:30
by Jan
Hi, you can override the image output per your template, the layout is:
components/com_phocacart/layouts/product_image.php

https://www.phoca.cz/documentation/115- ... -overrides
Jan

Re: image title tag missing

Posted: 09 May 2024, 19:52
by betei
Hi Jan,

sorry for requesting again. I would like next to the alt attribute also a title attribute:

<figure><img class="mfp-img" alt="E-Mail Server + Archiv" src="/images/products/thumbs/mycn_thumb_l_security_e-mail_server_cover.jpg" style="max-height: 412px;"><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter">1 von 6</div></div></figcaption></figure>

Where i have to implement this?

regards

Re: image title tag missing

Posted: 12 May 2024, 14:39
by Jan
Hi, the code you have pasted here, is managed by Javascript ov Magnific library: media/com_phocacart/js/magnific/jquery.magnific-popup.min.js. Not sure if it can work with title tags.

As written in previous post, the rendered image part is here:
components/com_phocacart/layouts/product_image.php

Jan