Skip to content

Schema markup for law firms

Law firm schema markup, with a LegalService example

Use LegalService for the firm, with each office's address and phone, the areas of law you practise and your lawyers as people with their job titles. Add the firm number your footer already shows, so an assistant describing your firm repeats your own facts.

The type to use

LegalService

LegalService is schema.org's type for law firms and other legal practices. Attorney exists too, but schema.org marks it deprecated because LegalService is broader and less ambiguous, so describe the firm as LegalService and each lawyer as a Person inside it.

LegalService on schema.org

What to include

The properties that matter for law firms

Most important first. Fill in what's true for you and leave out the rest; every value must also be on the page.

name
The firm's name as your letterhead and the regulator's register show it, including “Solicitors” or “LLP” if that's part of it.
knowsAbout
Practice areas in the words clients use: “employment law”, “residential conveyancing”, “wills and probate”. Someone describing their problem to an assistant uses those words, not your department names.
employee
Lawyers as Person entries with name, jobTitle (“Partner”, “Associate solicitor”) and their own practice areas, matching your team page profile for profile.
identifier
The firm's register number as a PropertyValue. The zeros in the example are a placeholder: copy yours exactly as your footer prints it.
address
The office this block describes. A second office gets its own block on its own page, so neither address is diluted.
telephone
The number a new client rings for a first conversation, not a fee earner's direct line.
areaServed
Where you take instructions from: Leeds and West Yorkshire, or a whole jurisdiction for work you handle remotely.
openingHoursSpecification
Office hours, so “can I speak to a solicitor on Saturday?” gets a true answer. Leave out evening appointments unless the page lists them.

Example

Copy, then make it yours

This is the markup for a made-up business. Replace every value with your own before you use it.

  1. Change every name, address, number and link to your own, and delete lines that don't apply.
  2. Paste it into your site's header code (website builders call it “code injection” or “custom code”), or let FirmCited add it for you.
  3. Check it with Google's Rich Results Test or the Schema Markup Validator.

LegalService JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LegalService",
  "name": "Ashworth Lane Solicitors",
  "url": "https://www.example.com/",
  "logo": "https://www.example.com/images/logo.png",
  "telephone": "+44 1632 960418",
  "email": "enquiries@example.com",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "12 Park Square East",
    "addressLocality": "Leeds",
    "addressRegion": "West Yorkshire",
    "postalCode": "LS1 2NE",
    "addressCountry": "GB"
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday"
      ],
      "opens": "09:00",
      "closes": "17:30"
    }
  ],
  "areaServed": [
    {
      "@type": "City",
      "name": "Leeds"
    },
    {
      "@type": "AdministrativeArea",
      "name": "West Yorkshire"
    }
  ],
  "knowsAbout": [
    "Employment law",
    "Residential conveyancing",
    "Wills and probate",
    "Family law"
  ],
  "identifier": {
    "@type": "PropertyValue",
    "propertyID": "SRA number",
    "value": "000000"
  },
  "employee": [
    {
      "@type": "Person",
      "name": "Helen Ashworth",
      "jobTitle": "Managing partner",
      "knowsAbout": [
        "Employment law"
      ],
      "url": "https://www.example.com/team/helen-ashworth"
    },
    {
      "@type": "Person",
      "name": "Daniel Okafor",
      "jobTitle": "Associate solicitor",
      "knowsAbout": [
        "Residential conveyancing",
        "Wills and probate"
      ],
      "url": "https://www.example.com/team/daniel-okafor"
    }
  ]
}
</script>

Watch out

Mistakes law firms make with markup

  • Attorney on every lawyer's profile

    Attorney is a business type, and a deprecated one. Marking each lawyer as Attorney turns people into firms; a lawyer is a Person with a jobTitle, working in your LegalService.

  • A firm number only the code knows

    If your register number sits in markup but nowhere a visitor can read it, nobody can check it against the register. Print it in the footer with a link to your entry, then let the markup repeat it.

  • Practice areas you've stopped offering

    knowsAbout lingers after a department closes or a partner leaves. When you stop taking immigration work, take it out of the code the same day it comes off the site.

Also worth adding

  • Person: On each lawyer's profile page, a block with their name, jobTitle and the admissions the profile states, so the profile and the firm block tell the same story.
  • Service: On each practice-area page, with serviceType (“Unfair dismissal claims”), areaServed and provider pointing to the firm.

FAQ

Law firms: markup questions

Type to search these questions, or ask anything about getting found on Google and AI.

We have offices in Leeds and Harrogate. One block or two?

Two. Each office page carries its own LegalService block with that office's address, phone, hours and the lawyers based there. Keep the firm name identical in both so they read as one firm.

Does a register number in our markup prove we're regulated?

No. It repeats what your footer says; the regulator's own register is what confirms it. That's why the number belongs in visible text with a link to your entry, and the markup should match it character for character.

Can a lawyer's admissions go in the code?

Yes, as hasCredential on their Person entry, using the same words as their profile: where and when they qualified, as they gave it to you. Leave out anything you couldn't point to on the page.

Make sure AI describes your firm accurately.

Check your site free, then press Optimize. We do the rest.