cancel
Showing results for 
Search instead for 
Did you mean: 

Add product title in product images zoom

Add product title in product images zoom

Hi, i like to add the "product title" in the zoom-view of the product image below image. Can anyone please help me? Maybe anyone can offer a snippet which prints the tile and can tell me where to add it?

 

Greetz

Till

2 REPLIES

Re: Add product title in product images zoom

Next level...
i found the solutin to display the alt-text at the product image (regular and fullscreen).

I added a view.xml in /var/www/html/app/design/frontend/<myfolder>/<mythem>/etc/view.xml as there was nothing in it until now.

 

In this view.xml i added the following:
    
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">   
    <vars module="Magento_Catalog">
        <var name="gallery">
                <var name="caption">true</var>
        </var>
    </vars>
</view>

 

First it seemed to work - alt tag is printed under the images BUT since i made this changes some products can not be clicked/opened anymore. It seems like all products in the category that are in row 1 and row 2 are not clickable anymore products of the third row work fine.

 

Has anyone an idea what to do now?

 

Greetz

Re: Add product title in product images zoom

You can add a title on the zoomed image if you use a Magento zoom extension like Magic Zoom Plus:

 

Magento 2: https://marketplace.magento.com/magictoolbox-magiczoomplus.html

 

Magento 1: https://www.magentocommerce.com/magento-connect/magic-zoom-plustm.html

 

It's a paid extension and there's a free trial. We are the developers of it.