- Blog
- SEO and GEO
Presenting Business Information More Clearly On Your Site
Instead of making Google and AI assistants guess your business’s name, address and opening hours, you can tell them directly. The way to do this is structured data, and its easiest form is JSON-LD.
What Is JSON-LD?
A small block of data added to the <head> or <body> section of the page, which the visitor does not see but search engines read. You do not need to touch your HTML; a single <script> tag is enough.
A Basic Example
Fill in the block below with your own information and add it to your home page and your contact page:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"@id": "https://ornek.com/#isletme",
"name": "Atölye Limon",
"description": "Ceramics classes and an open studio in Kadıköy.",
"url": "https://ornek.com/",
"telephone": "+90 216 000 00 00",
"image": "https://ornek.com/gorseller/atolye.jpg",
"priceRange": "₺₺",
"address": {
"@type": "PostalAddress",
"streetAddress": "Örnek Sokak No: 12",
"addressLocality": "Kadıköy",
"addressRegion": "İstanbul",
"postalCode": "34710",
"addressCountry": "TR"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 40.9903,
"longitude": 29.0291
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "11:00",
"closes": "20:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Saturday", "Sunday"],
"opens": "10:00",
"closes": "18:00"
}
],
"sameAs": [
"https://www.instagram.com/ornekhesap/"
]
}
</script>
What Does Each Field Do?
@type:LocalBusinessis the general type. If there is a more specific type, use it: such asDentist,Restaurant,HairSalon,AutoRepair,SportsClub. The more specific, the better.@id: Gives your business a fixed identifier. Schemas on other pages of the site can refer to this identifier.addressandgeo: The most critical fields for map results. You can get the coordinates by right-clicking your business in Google Maps.openingHoursSpecification: Day names are written in English, and times are in 24-hour format.sameAs: Your official social media profiles. It links together the traces of your brand in different places.
Three Common Mistakes
- Marking up information that is not on the page. The phone number and address in the schema should be the same as the information visible on the page.
- Adding a fake rating. Writing a rating you made up yourself in the
aggregateRatingfield is against the rules and can result in a manual action. It is used only for reviews that are really collected and displayed on your site. - Contradicting your Google Business Profile. The name, address and phone number in the schema should be the same as those in your profile, letter for letter.
Where Do You Add It In WordPress?
Your SEO plugin lets you fill in most fields from the interface. If you want to add it by hand, you can write this in your theme’s functions.php file:
add_action('wp_head', function () {
if (!is_front_page()) {
return;
}
$schema = [
'@context' => 'https://schema.org',
'@type' => 'LocalBusiness',
'name' => get_bloginfo('name'),
'url' => home_url('/'),
// other fields...
];
echo '<script type="application/ld+json">'
. wp_json_encode($schema, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)
. '</script>';
});
Test It
After adding the code, check it with two tools:
- Google Rich Results Test: Shows which rich results your page is eligible for.
- Schema Markup Validator (validator.schema.org): Lists syntax errors and missing fields.
If there are no errors, within a few days you will start seeing your data in the “Enhancements” section of Search Console.