JSON-LD WebPage
This type can get a bit tricky in the fact that every URL is essentially a “web page.” The cool thing about this type is that it (may) yield a site name within Google’s search results as well as a search box if implemented correctly.
Features
Place in site-wide code
Auto-generates
WebPage
JSON-LD schema for every pagePulls meta title and description automatically
Options to pull others
SEO preference before mechanical
<title>
?Options to override?
Future
Template options
Callback option for modification
Or suppression
Passes object in, can be modified and returned
or null to suppress
Example
Why?
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage",
"name": "About Patrick",
"description": "In addition to Patrick's work in the SEO field, he also enjoys classical jazz dancing and organic farming ",
"publisher": {
"@type": "ProfilePage",
"name": "Patrick's Website"
}
}
</script>
Last updated
Was this helpful?