Main Street Cited

Gym Schema: Copy-Paste JSON-LD Example

A prospective member may ask when the gym opens, whether classes are offered and how to visit. ExerciseGym markup gives the gym’s main facts a clear structure.

EXAMPLE. This is a fictional example. The name, number, address and example.com URL are placeholders. Replace every value with your own public business information before publishing.

Choose the right business type

ExerciseGym is the specific type for a gym. For a yoga-only studio or sports club, check whether another type describes the actual business more clearly. See the schema.org ExerciseGym definition for the type and its inherited fields.

Copy-paste ExerciseGym JSON-LD

Copy the complete block into your homepage’s <head>. Change every example value, including the service and hours. Remove fields that do not apply.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "ExerciseGym",
  "name": "Example Motion Gym",
  "url": "https://example.com/gym-schema-example/",
  "telephone": "+1-217-555-0107",
  "description": "Gym with strength equipment and group fitness classes.",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "[your street]",
    "addressLocality": "[your town]",
    "addressRegion": "[your state]",
    "postalCode": "[your postal code]",
    "addressCountry": "US"
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "https://schema.org/Monday",
        "https://schema.org/Tuesday",
        "https://schema.org/Wednesday",
        "https://schema.org/Thursday",
        "https://schema.org/Friday",
        "https://schema.org/Saturday"
      ],
      "opens": "06:00",
      "closes": "21:00"
    }
  ],
  "makesOffer": {
    "@type": "Offer",
    "itemOffered": {
      "@type": "Service",
      "name": "Gym membership"
    }
  }
}
</script>

What each field does

  • @context tells readers that the property names come from schema.org. @type says this is an ExerciseGym, a specific kind of local business.
  • name is the business name customers see. url is its official website page. telephone is the public number, including country and area code.
  • description briefly names what the business really does. Keep it consistent with visible page copy.
  • address groups the street, city, state, ZIP and country under PostalAddress. Use a place customers can visit.
  • openingHoursSpecification gives local opening and closing times for the listed days. Closed days are left out. Change the schedule to your actual regular hours.
  • makesOffer names one example service customers can ask about. Replace it with a service you actually provide, or remove the whole field.

One detail to check for ExerciseGym

If staffed desk hours differ from member access hours, explain both visibly. Do not label the gym open when new visitors cannot enter or speak with staff.

This example has one weekly schedule. If Saturday closes early, give Saturday its own opening and closing times. Do not copy the weekday hours.

How to add it to your site

Add the code once on the homepage or the matching business page. Put it in the page’s head section when the platform allows it. Keep your visible name, contact details and hours in sync with the code.

  1. WordPress: Use a trusted header code plugin or your theme’s head-code setting. Paste the entire script into the homepage head. If an SEO plugin already outputs ExerciseGym data, edit that data instead of creating a conflicting duplicate.
  2. Squarespace: Open Settings → Advanced → Code Injection and paste the block in Header. If you have multiple branches, use page-level injection where available so each branch’s details appear on its own page.
  3. Wix: Open Settings → Custom Code, add the block to Head, and set it to the relevant page. Publish the site after saving.
  4. Shopify: In Online Store → Themes → Edit code, add the block to theme.liquid inside <head>. For a single branch, restrict it to the homepage so product pages do not all claim to be the business page.
  5. GoDaddy Website Builder: Use its custom HTML or head-code setting if your plan exposes one. Some versions only offer a body HTML section; check the published source to make sure the JSON-LD script is present. If your plan does not allow custom code, ask support or your site editor about head injection.

Test the published page

  1. Paste the live page URL into Schema Markup Validator. Confirm it detects ExerciseGym and that each property contains your real details.
  2. Run the same URL through Google Rich Results Test. It checks Google-supported rich result features; a valid schema type may show no eligible rich result. That does not mean the JSON-LD is invalid.
  3. View page source and search for application/ld+json. Make sure the script appears once for this business, without leftover fictional values or mismatched hours.

Valid markup helps machines read facts on a page. It does not guarantee a Google feature or a recommendation from an assistant.

Check my business, free for a one-page check of what nearby customers are told.

Sources