Ways to add schema markup to individual location pages in WordPress


Rich Owings

Forum Member
Joined
Apr 21, 2014
Messages
241
Likes
109
Anyone have suggestions for the best way to add schema markup to individual location pages in WordPress? In this case it is a dentist with two locations. If I wanted to add it sitewide, that is easy, but what's a good way to do it for an individual page?

Also, what kind of sitewide or homepage schema (if any) would you add for a business with two locations?
 

mborgelt

Local Search Expert
Joined
Jul 22, 2012
Messages
471
Likes
150
The Chameleon Theme allows you to set up widgets to appear on certain pages. Using that you could put the necessary schema in a text widget and assign that widget to the appropriate page. We like to add schema to sites with multiple locations manually as it's easy to do. Once you validate the markup with https://developers.google.com/structured-data/testing-tool/ you can save the code to a text doc and just copy/paste to new pages. Hope this helps!
 

Rich Owings

Forum Member
Joined
Apr 21, 2014
Messages
241
Likes
109
Thanks. There's got to be some way to do it without switching themes. Never thought about a widget though -- another avenue to investigate!
 

mborgelt

Local Search Expert
Joined
Jul 22, 2012
Messages
471
Likes
150
Yes widgets are great for this sort of thing. You could create different page themes that use different widgets and load up the appropriate schema in each widget. That seems like the best option. Sorry I thought you were building a new site.
 

Phil Rozek

Local Search Expert
Joined
Jul 26, 2012
Messages
1,421
Likes
864
Rich,

I'd use the following types of Schema:

1. The usual NAP blob - with the appropriate itemtype attribute (see http://www.localvisibilitysystem.co...ht-schema-org-markup-for-your-local-business/)

2. Hours: https://schema.org/openingHours

3. Review (for at least one testimonial): https://schema.org/Review

David Deering also did an excellent post a couple months ago over at Whitespark:

Why Your Local Business Schema Sucks and How To Make it Better | Whitespark

(In case you're looking to go beyond.)
 

Rich Owings

Forum Member
Joined
Apr 21, 2014
Messages
241
Likes
109
Thanks, Phil. I've seen those links (your blog is on my must read list!) but it's always good to have a reminder.

Would anyone care to chime in on what schema (if any) should be posted site-wide, or whether it should all just go on the home and location pages?
 

Local Search Forum


Weekly Digest
Subscribe/Unsubscribe


Google Product Exert

@LocalSearchLink

Join Our Facebook Group

Top