How to add Schema markup in Local Business website?

4 replies
Hi, trying to add Schema markup code in local business website but when I am testing site in structured data testing tool schema not found.

Check the script is it fine or issue with code?

<script type='application/ld+json'>
{
"@context": "http://www.schema.org",
"@type": "Cleaning",
"name": "London Commercial Cleaners",
"url": "http://londoncommercialcleaners.com/",
"logo": "http://londoncommercialcleaners.com/wp-content/uploads/2015/11/logo1.png",
"address": {
"@type": "PostalAddress",
"streetAddress": "39a Welbeck Street",
"addressLocality": "London",
"addressRegion": "England",
"postalCode": "W1G 8DH",
"addressCountry": "United Kingdom "
},
"openingHours": "Mo, Tu, We, Th, Fr, Sa 06:00-20:00",
"contactPoint": {
"@type": "ContactPoint",
"telephone": "0208 7491001"
}
}
</script>
#add #business #local #markup #schema #website
  • Profile picture of the author Hyder Alamgir
    You can use this tool to test your structured data code snippets:
    https://search.google.com/structured-data/testing-tool

    There are a couple of issues with your snippet.

    (1) @type: Cleaning is incorrect. The @type can be from one of the accepted list of types:
    http://schema.org/docs/full.html

    I think the type you're looking for in the accepted list of types is 'DryCleaningOrLaundry'

    (2) Your phone format needs to be correct => +12087491001

    (3) You also need a contactType in your contactPoint object. See list of accepted values for contactType here:
    https://developers.google.com/search...orate-contacts

    (4) You need an image property as well - you can make that the same as your logo for now.


    This corrected snippet should work now:

    <script type="application/ld+json">
    {
    "@context": "http://www.schema.org",
    "@type": "DryCleaningOrLaundry",
    "name": "London Commercial Cleaners",
    "url": "http://londoncommercialcleaners.com",
    "logo": "http://londoncommercialcleaners.com/wp-content/uploads/2015/11/logo1.png",
    "image": "http://londoncommercialcleaners.com/wp-content/uploads/2015/11/logo1.png",
    "address": {
    "@type": "PostalAddress",
    "streetAddress": "39a Welbeck Street",
    "addressLocality": "London",
    "addressRegion": "England",
    "postalCode": "W1G 8DH",
    "addressCountry": "United Kingdom "
    },
    "telephone": "+12087491001",
    "openingHours": "Mo, Tu, We, Th, Fr, Sa 06:00-20:00",
    "contactPoint": {
    "@type": "ContactPoint",
    "telephone": "+12087491001",
    "contactType": "customer service"
    }
    }
    </script>


    Note: Ignore the error with 'url' in the testing tool. That appears to be an error with the testing tool itself.
    {{ DiscussionBoard.errors[11165751].message }}
    • Profile picture of the author abrehman
      Thank you so much sir
      {{ DiscussionBoard.errors[11166656].message }}
      • Profile picture of the author abrehman
        Sir if i have the WP access then should i add this script to header.php file? is it fine or not
        {{ DiscussionBoard.errors[11166661].message }}
        • Profile picture of the author Hyder Alamgir
          Yes, you can add it right before the closing </head> tag
          {{ DiscussionBoard.errors[11166665].message }}

Trending Topics