Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Boris Kamp
Boris Kamp
16,660 Points

Schema.org, what scope do I use?

Hi guys! On my own website boriskamp.nl I write about what I do in general, but also have special landing pages for specific services such as:

  • build a website
  • build a webshop
  • database design

and more. I would like to add Schema.org makeup to these pages but have no clue on what to do specifically. I've read trough the docs and have the following question:

  • should I use Service, Product or Offer for these pages? I don't have fixed prices.
  • can I use the localbusiness scope outside of one of these scopes? or should I only use them inside the scope inside the provider property?
  • Where would I just use the localbusiness scope? on the about and home page or something?

I hope somebody with Schema.org experice can help me with this.

1 Answer

Rick Hoekman
Rick Hoekman
9,494 Points

I ran into this last year and I also do not offer any prices or products so here is what I came up with. Maybe you can use some of it and tweak it a little and test it within the Google Search Console:

<div itemscope itemtype="http://schema.org/SoftwareApplication">
    <link itemprop="applicationCategory" href="http://schema.org/WebApplication">
    <meta itemprop="inLanguage" content="English" />
    <meta itemprop="name" content="Website Test" />
    <meta itemprop="image" content="/img/wlogo-fb.jpg" />
    <meta itemprop="creator" content="Website Test" />
    <meta itemprop="provider" content="Website Test" />
    <meta itemprop="publisher" content="Website Test" />
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <meta itemprop="price" content="0" />
</div>

<script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "Organization",
      "url": "http://www.website-test.org",
      "logo": "http://www.website-test.org/img/wlogo-fb.jpg"
    }
</script>