Schema Code


MichaelW

Forum Member
Joined
Feb 23, 2015
Messages
47
Likes
0
Hi

Here's 2 examples of schema code.

Both are for solicitor/lawyer sites. Would either be better for GMB listings and higher rankings, or do they basically do the same thing and give the address?

HTML:
<ul itemscope itemtype="http://schema.org/Attorney">
<li>
<div class="adr" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"><span class="street-address" itemprop="streetAddress">
3 Westfield Road, Belfast, County Antrim, BT3 5ST</span><br></div>
</li>
<li class="tel" itemprop="telephone">(028) 903 3342</li>
</ul>

HTML:
<div itemscope itemtype="http://schema.org/LocalBusiness" class="schema">
	<span itemprop="name">The Law Firm</span> <span itemprop="description">Solicitors</span><br />
	<div itemprop="location" itemscope itemtype="http://schema.org/Place">
		<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
			<span itemprop="streetAddress">130 Belmost St</span><br />
			<span itemprop="addressLocality">Belfast</span>, <span itemprop="addressRegion">County Antrim</span> <span itemprop="postalCode">BT12 34BA</span>
		</div>
</div>
thanks,
Michael.
 
Joined
Mar 25, 2014
Messages
176
Likes
105
Hi Michael

It doesn't look like your code made it onto the forum post.

Could you upload a screenshot of the code you're talking about?
 

Linda Buquet

Moderator
Moderator
Joined
Jun 28, 2012
Messages
14,433
Likes
4,283
Thanks Priya the forum stripped all the code out since you can't put code in a post.

But I edited and wrapped HTML tags around it so it would show. All good to go now.
 

cdawg2610

Forum Member
Joined
Jul 2, 2013
Messages
118
Likes
37
Hey Michael -

my goal with Schema is to always be specific as possible, so if you have a sub-group, like Attorney, I'd use that.
 

MichaelW

Forum Member
Joined
Feb 23, 2015
Messages
47
Likes
0
Thanks Linda for editing that.

So the first snippet has the attorney (even though in Ireland & UK) we use the term solicitor. So are these both much of a much, with the first one slightly better cos it has the sub group schema?

Or does the second snippet have more detailed schema elements like streetAddress and addressLocality, postalCode, which is preferable?

any thoughts
 

Sam Austen

Forum Member
Joined
Aug 24, 2015
Messages
8
Likes
0
I would suggest as standard something like the following:

HTML:
<div itemscope itemtype="http://schema.org/Attorny">
<span itemprop="legalName">The Law Firm</span><div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"><span itemprop="streetAddress">130 Belmost Street</span><span itemprop="addressLocality">Belfast</span>,<span itemprop="addressRegion">Antrim</span><span itemprop="postalCode">BT12 34BA</span></div>
</div>
 

mborgelt

Local Search Expert
Joined
Jul 22, 2012
Messages
467
Likes
148
I would also recommend using "SameAs" for social profiles and things like Super Lawyers and Avvo if they have them (if not I would definitely get them listed there).
 

Similar threads


Local Search Forum


Weekly Digest
Subscribe/Unsubscribe


Google Product Exert

@LocalSearchLink

Join Our Facebook Group

Top