image title tag missing

Phoca Cart - complex e-commerce extension
betei
Phoca Member
Phoca Member
Posts: 25
Joined: 08 May 2020, 08:11

image title tag missing

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: image title tag missing

Post 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
If you find Phoca extensions useful, please support the project
betei
Phoca Member
Phoca Member
Posts: 25
Joined: 08 May 2020, 08:11

Re: image title tag missing

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: image title tag missing

Post 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
If you find Phoca extensions useful, please support the project
Post Reply