How to Add Json-Ld Website Schema With Sitelinks Search Box

Editor
0

When it comes to structured information and JSON-LD, the Website Schema tab is an essential tool for generating the correct Schema.org JSON-LD code for a company and Google Sitelinks Search Box.

This code can be placed anywhere in the homepage’s HTML, and the organization Schema will assist Google with their Knowledge Graph data, including social buttons. Additionally, the Sitelink Search Box code can be utilized to enable your website's internal search features within Google.

Adding JSON-LD Schema Markup for Website In Blogger & Wordpress

Please use the following code and paste it just above the </head> tag:

<script type='application/ld+json'>
{
  "@context": "http://www.schema.org",
  "@type": "WebSite",
  "name": "Bloggersstand.com",
  "alternateName": "BSD",
  "url": "https://www.example.com"
}
</script>

How to Add a Sitelinks Search Box in Blogger with Website

To add sitelinks search box for internal search on Google, place the following code just above the </head> tag:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "WebSite",
  "name": "Site name",
  "url": "https://example.com",
  "sameAs": [
    "https://facebook.com/page",
    "https://instagram.com/site",
    "https://twitter.com/username"
  ],
  "potentialAction": {
    "@type": "SearchAction",
    "target": "http://example.com/pages/search_results?q={search_term}",
    "query-input": "required name=search_term"
  }
}
</script>

Preventing a Sitelinks Search Box Schema from Showing on Google Search

Google Search may choose to add a sitelinks search box to your website even if it doesn't include the structured data described here. However, you can prevent this behavior by adding the following meta tag to your homepage:

<meta name="google" content="nositelinkssearchbox" />
Tags

Post a Comment

0Comments

Post a Comment (0)

#buttons=(Accept !) #days=(31)

Our website uses cookies to enhance your experience. Learn More
Accept !