2

Should I use Microdata markup on my blog or should I put just an JSON-LD with all info, or is using both the best option?

A bit of explanation. I am trying to mark up my blog and I manage to get to 1 error left in "Structured Data Testing Tool". The error left is a publisher meta. Now I don't want to add blog info at the bottom of the post. I used Organization meta in header where my logo is, but testing tool doesn't take it into account.

Should I add JSON-LD duplicating all info and adding publisher data or should I use just JSON-LD and not bother with marking whole page?

  • Do both. Adding JSON format for mark up cant be considered as duplicate. – Suri Babu Jun 2 '16 at 8:14
  • 1
    @Suri Have you tried what you're suggesting with the Structured Data Testing Tool? The tool shows it will duplicate the data which is almost certainly going to give the wrong impression to a parser. – grg Jun 2 '16 at 9:00
  • 1
    Just a few days ago, I noticed Google's documentation now stating they recommend using JSON-LD over inlined attributes. – Rob Jun 2 '16 at 12:04
  • @Rob they also recently added "rich cards" and a report in webmaster tools. Those can only be triggered using JSON-LD. One thing though that i am not sure about is whether they support schema.org (and/or JSON-LD) breadcrumbs. We are still using the ancient data-vocab for those, since they did not support schema crumbs, last i knew. Has anyone got crumbs to apear with schema.org via JSON-LD? – dhaupin Jun 2 '16 at 18:50
  • @dhaupin That's another thing I read at the same time. Breadcrumbs will not work with JSON-LD and rich cards. I don't recall any other detail than that. – Rob Jun 2 '16 at 22:18
2

You can refer to the organisation markup using itemref. Add an id to the organisation markup, then use itemref="yourid" at the top of your markup which needs to include the organisation.

Don't duplicate your markup with JSON-LD; use one or the other.

  • Based on comments and your answer doing markup and json is considered duplicating. Any idea what is better? – klo Jun 2 '16 at 9:21
  • @klo See what I said about itemref in my answer. – grg Jun 2 '16 at 9:23
1

If the organisation info is static all across your blogs then you may define those properties using meta tags. It will not be considered as hidden content since the info is present on the page.

sample code:

<span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="XYZ Org"/>
</span>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.