html5 - itemprop="image" on element not <img>? -


i have product page uses microdata. @ moment itemprop="image" attribute specified on first thumbnail thumbnail gallery. i'd specify high-res image have.

the trouble is, that's not displayed on page, it's loaded via javascript using lighbox. know can like:

<img itemprop="image" src="/img/high-res.jp" style="display:none" /> 

and image won't show , it's tagged product image. but, of course image still download.

any way can specify itemprop="image" on image not download image?

i tried changing <img> <span> testing tool didn't recognise it.

perhaps link element useful here - it's not displayed in rendered html, available in html source , therefore available javascript:

<link itemprop="image" href="/img/high-res.jpg"> 

Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -