Opened on 07/22/2017 at 04:43:34 PM

Closed on 12/05/2017 at 04:13:13 PM

#5440 closed change (invalid)

Add breadcrumbs microdata to eyeo websites

Reported by: juliandoucette Assignee:
Priority: P5 Milestone:
Module: Websites Keywords: goodfirstbug
Cc: ire, wspee, saroyanm, lisabielik, jeen Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

Background

See https://developers.google.com/search/docs/data-types/breadcrumbs

What to change

Add Microdata to websites with existing breadcrumbs:

<ol itemscope itemtype="http://schema.org/BreadcrumbList">
  <li itemprop="itemListElement" itemscope
      itemtype="http://schema.org/ListItem">
    <a itemscope itemtype="http://schema.org/Thing"
       itemprop="item" href="https://example.com/items">
        <span itemprop="name">Item</span>
        <img itemprop="image" 
           src="http://example.com/images/icon-item.png" alt="Items"/>
    </a>
    <meta itemprop="position" content="1" />
  </li>
</ol>

Add JSON-LD to websites without visual breadcrumbs:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [{
    "@type": "ListItem",
    "position": 1,
    "item": {
      "@id": "https://example.com/items",
      "name": "Item",
      "image": "http://example.com/images/icon-item.png"
    }
  }]
}
</script>

Attachments (0)

Change History (6)

comment:1 Changed on 07/22/2017 at 05:31:57 PM by juliandoucette

  • Ready unset

comment:2 Changed on 07/24/2017 at 07:49:36 AM by ire

@juliandoucette Thanks for sharing all of this!

Is there any benefit/disadvantage to using the Markup or JSON-LD version? If not, perhaps we should pick one method to use across all our sites. I personally find the JSON-LD version much easier to read.

comment:3 follow-up: Changed on 07/25/2017 at 12:46:44 PM by juliandoucette

Is there any benefit/disadvantage to using the Markup or JSON-LD version?

  • There is a minor file size difference (that I haven't measured)
  • The fact that if we have HTML for breadcrumbs and JSON for breadcrumbs then we have two breadcrumb structures on a page instead of one (if you count HTML with itemprops as one)
Last edited on 07/25/2017 at 12:48:06 PM by juliandoucette

comment:4 in reply to: ↑ 3 Changed on 07/26/2017 at 07:41:35 AM by ire

Replying to juliandoucette:

Is there any benefit/disadvantage to using the Markup or JSON-LD version?

  • There is a minor file size difference (that I haven't measured)
  • The fact that if we have HTML for breadcrumbs and JSON for breadcrumbs then we have two breadcrumb structures on a page instead of one (if you count HTML with itemprops as one)

Got it, I think your initial suggestion makes the most sense then.

comment:5 Changed on 09/04/2017 at 10:55:08 AM by juliandoucette

  • Priority changed from P3 to P5

comment:6 Changed on 12/05/2017 at 04:13:13 PM by juliandoucette

  • Resolution set to invalid
  • Status changed from new to closed

This ticket is not specific enough to be actionable. I will address it separately in other more specific tickets.

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none).
 
Note: See TracTickets for help on using tickets.