I\'m working on a website that has a bunch of articles.
I\'m looking to find a way to add an image that is invisible without putting it inside a hidden div.<
You can use JSON-LD instead of microdata.
That way you add everything you want in JSON data that is not displayed in the page, but recognized by most search engines.
Here is an example taken from http://schema.org/CreativeWork:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "CreativeWork",
"name": "My Article",
"image": "http://your.image.url.com"
}
</script>
With Microdata, you may use meta
and link
elements in the body
.
If the value is a URI, you must use link
instead of meta
.
So in your case, the markup would be:
<link itemprop="image" href="link/to/image.jpg">