Jump to content

SOLVED No ALT tag on products Prestashop 1.7


doog_2019

Recommended Posts

Hi everyone,

This is what I found in my productList.tpl: ->>>>>>>> themes/mytheme/template/catalog/_partials/miniatures/productList.tpl

What do you have in your file ?

<img
						src = "{$product.cover.bySize.home_default.url}"
						data-full-size-image-url = "{$product.cover.large.url}" alt=""
					/>
				</span>
				{if isset($product.images[1])}
				<span class="hover_image">
					<img 
						src = "{$product.images[1].bySize.home_default.url}"
						data-full-size-image-url = "{$product.images[1].bySize.home_default.url}" alt=""
					/> 
				</span>
				{/if}
			  </a>

 

Link to comment
Share on other sites

Ok, so I found the solution by myself and I will tell you how I did for the ones who meet that problem. 💪

For me it was in the file "product.tpl" here : themes/mytheme/templates/catalog/_partials/miniatures/product.tpl

I completed the ALT tags wich were empty and its working ! 😎

<img
						src = "{$product.cover.bySize.home_default.url}"
						data-full-size-image-url = "{$product.cover.large.url}" alt="{$product.cover.legend}"
					/>
				</span>
				{if isset($product.images[1])}
				<span class="hover_image">
					<img 
						src = "{$product.images[1].bySize.home_default.url}"
						data-full-size-image-url = "{$product.images[1].bySize.home_default.url}" alt="{$product.cover.legend}"

2132234503_Capturedecran2019-05-25a13_27_01.png.25e7b594368d3fb247314da019301051.png

Edited by doog_2019 (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...