Making WordPress.org

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3982 closed enhancement (fixed)

Add JSON-LD to .org homepage(s)

Reported by: jonoaldersonwp's profile jonoaldersonwp Owned by: obenland's profile obenland
Milestone: Priority: high
Component: General Keywords: seo
Cc:

Description

Search engines and social platforms increasingly support and desire structured metadata, in the form https://schema.org/ markup, deployed via JSON-LD. Providing information in this format makes us eligable for rich search results, more structured representation, and other benefits.

In the long-term, we should develop a systemised approach to managing the structured data for each page. In the short-term, we can gain some benefits from manually adding static markup to the .org homepage and localised equivalents.

Add the following JSON-LD to all dot org homepages (e.g., wordpress.org and rosetta homepages), as high in the <head> as is possible.

Code:

<script type='application/ld+json'>
{
 "@context": "https://schema.org",
 "@graph": [{
  "@type"  : "Organization",
  "@id"    : "https://wordpress.org/#organization",
  "url"    : "https://wordpress.org/",
  "name"   : "WordPress",
  "logo" : {
   "@type" : "ImageObject",
   "@id"   : "https://wordpress.org/#logo",
   "url"   : "https://make.wordpress.org/design/files/2016/09/WordPress-logotype-wmark.png"
  },
  "sameAs" : [
   "https://www.facebook.com/WordPress/",
   "https://twitter.com/WordPress",
   "https://en.wikipedia.org/wiki/WordPress"
  ]
 },
 {
  "@type"     : "WebSite",
  "@id"       : "https://wordpress.org/#website",
  "url"       : "https://wordpress.org/",
  "name"      : "WordPress.org",
  "publisher" : { "@id": "https://wordpress.org/#organization" }
 },
 {
  "@type"       : "WebPage",
  "@id"         : "https://wordpress.org/",
  "url"         : "https://wordpress.org/",
  "inLanguage"  : "en",
  "name"        : "Blog Tool, Publishing Platform, and CMS - WordPress",
  "description" : "Open source software which you can use to easily create a beautiful website, blog, or app.",
  "isPartOf"    : { "@id": "https://wordpress.org/#website" }
 }]
}
</script>

For each rosetta homepage (e.g., es.wordpress.org):

  • Replace the inLanguage parameter with the appropriate ISO code.
  • Replace the URL and ID parameters of the WebSite and WebPage nodes (but not of the organization node) with appropriate values.
  • Append the localisation name to the WebSite node's name attribute (E.g., 'WordPress.org - ES')
  • If available, replace the name and description attributes of the WebPage node with localised/translated equivalents.

Example for es.wordpress.org

<script type='application/ld+json'>
{
 "@context": "https://schema.org",
 "@graph": [{
  "@type"  : "Organization",
  "@id"    : "https://wordpress.org/#organization",
  "url"    : "https://wordpress.org/",
  "name"   : "WordPress",
  "logo" : {
   "@type" : "ImageObject",
   "@id"   : "https://wordpress.org/#logo",
   "url"   : "https://make.wordpress.org/design/files/2016/09/WordPress-logotype-wmark.png"
  },
  "sameAs" : [
   "https://www.facebook.com/WordPress/",
   "https://twitter.com/WordPress",
   "https://en.wikipedia.org/wiki/WordPress"
  ]
 },
 {
  "@type"     : "WebSite",
  "@id"       : "https://es.wordpress.org/#website",
  "url"       : "https://es.wordpress.org/",
  "name"      : "WordPress.org - ES",
  "publisher" : { "@id": "https://wordpress.org/#organization" }
 },
 {
  "@type"       : "WebPage",
  "@id"         : "https://es.wordpress.org/",
  "url"         : "https://es.wordpress.org/",
  "inLanguage"  : "es",
  "name"        : "Herramienta de blogs, plataforma de publicación y CMS - WordPress",
  "description" : "Software de código abierto que puedes usar para crear fácilmente una bonita web, blog o aplicación.",
  "isPartOf"    : { "@id": "https://es.wordpress.org/#website" }
 }]
}
</script>

Change History (3)

#2 @obenland
6 years ago

  • Owner set to obenland
  • Resolution set to fixed
  • Status changed from new to closed

In 7961:

Main: Add site's attribute schema.

Props jonoaldersonwp.
Fixes #3982.

#3 @joostdevalk
6 years ago

  • Keywords seo added
Note: See TracTickets for help on using tickets.