danieljc

Member
Joined
Nov 23, 2015
Messages
26
Reaction score
1
Looking for recommendation on best way to implement this:

Site has primary location (head office) city where most of the rankings occur. Want to place NAP and lat long schema in footer for primary location but override it in footer for secondary location pages with pertinent schema for those locations.

What have you guys done that's a good way to implement this?

Thanks in advance.
 
Joined
Oct 25, 2013
Messages
752
Reaction score
286
If you've got more than two locations (and it's debatably a good idea I think even if you only have two) then you've got the right idea. Main location schema/NAP everywhere except for pages specifically relevant to other locations.

I'm a little confused about your question though... like... what about this is a challenge? If you have a few hundred locations of course, it might be worth the time to have a little database put together, and generate appropriate schema and such dynamically, but if you don't have a developer who can handle that, a forum post is a pretty small amount of space to line that out.

I use JSON-LD... that means there's only one block of code you need to generate and drop in, instead of messing with a ton of in-line spaghetti on every page that's different. The fact that you're asking this question at all means you're probably not using a static website. If you're using wordpress, there's a ton of ways to do it. If you only have a couple locations, you could even make new footer.php files and write a little php to call the right one depending on the page, or you could make custom meta-data on the pages that need it that you use to fill in your footer file, or you could have a custom footer widget area, and just fill out your footer with widgets. There might be custom plugins that handle that too, though I cringe a little every time I go out looking for a new plugin to do some specific thing or other. I think Yoast might let you swap out Schema easily, but you've still got to deal with NAP changing in the footer somehow.

Whatever solution you pick, maintenance is going to be a consideration. Are you going to end up having to edit those footers a lot? Add more locations soon? etc. If you're going to need that to be easy to keep up-to-date, you might want to get a proper developer in for an hour or two to put that in place for you. It's easy enough it shouldn't take them longer than that.
 

danieljc

Member
Joined
Nov 23, 2015
Messages
26
Reaction score
1
Thanks.

The challenge is that primary location schema everywhere in the footer is simple and obvious. What's not obvious is replacing code in footer for specific pages. We're discussing best ways to do it including some of your suggestions, but I just thought I'd throw it out there to see which direction others have gone.
 
Joined
Oct 25, 2013
Messages
752
Reaction score
286
Right on. Well, there's more than one way to skin a cat, and Google might judge you in part for crappy html (though I've heard that being out of compliance doesn't directly hurt your rankings, as long as things are crawlable and fast) but Google can't spider your php at all. Whatever solution you construct (or cobble together) at least you won't be judged on it by anyone other than the people who have to make edits to those footers somewhere down the line.
 

Tim Colling

Moderator
Local Search Expert
LocalU Member
Joined
Sep 3, 2014
Messages
1,283
Reaction score
706
I have this challenge on a couple of sites. One of the most challenging aspects is that I add "sub-pages" to the city landing pages on a recurring basis. I need for them to have the appropriate schema code for their city's location.

So, in effect, I need most pages and posts to have the "main" markup info, but the city pages and their sub-pages need to have the city-specific markup info.

I have tried different wordpress plugins for this. Currently I'm using this one: https://wordpress.org/plugins/display-widgets/

However, every time I add a city sub-page, I have to manually add a checkmark for that new subpage. That's because that plugin doesn't have the ability to indicate that "all sub pages" or "all child pages" should be included or excluded.

I'm testing this plugin to replace that previous one, because it does have that "all sub pages" capability: https://wordpress.org/plugins/dynamic-widgets/

Does anyone else have a better plugin for this? I don't want to start adding php code (and I'm not the best programmer on the block, anyway! :) )
 

spadilla

Member
Joined
May 5, 2014
Messages
24
Reaction score
11
@tcolling have you tried the widget visibility sub-plugin that comes with jetpack? https://jetpack.com/support/widget-visibility/ I've been using it on all my sites and have been happy with it, as I am able to have the widget show or hide on a taxonomy level in addition to individual pages or posts / categories. This is nice if you use any custom post types. It also will automatically hide or show on sub-pages of a taxonomy or category. I'm not sure if that helps in your situation, but it's another option that's supported by Automattic :)

@danieljc if you are on Wordpress, a plugin like tcolling mentioned or Jetpack's "widget visibility" would fit the bill in this situation really well.
 
Similar threads
Thread starter Title Forum Replies Date
mikepetersonwi Schema and multiple locations Multi-Location Issues 3
Beris Local Business Schema - Multiple Locations Local Search 6
rich_marlatt What Wordpress plugins do you recommend for SEO and Schema Markup? Ask a LocalU Expert [PRIVATE] (LocalU) 4
K Correct use of schema Google My Business & Google Maps 2
DaveOzric Schema markup no longer working? Google My Business & Google Maps 4
Koray Tuğberk GÜBÜR Review Schema Mark up and Google My Business Reviews Local Search 4
R Schema markup and dynamic tracking numbers Google My Business & Google Maps 3
Toby 39 Celsius Video Schema Ques: Embed URL vs Content URL Local Search 0
Charles Jenkins SCHEMA For local business with address hidden? Local Search 1
RattlingTram Best Practices for areaServed Schema Markup? Help & Support for Google Local 5
Barb Davids GMB Listing vs Local Schema Google My Business & Google Maps 8
S What is a relevant Language markup for LocalBusiness Schema Local Search 3
djbaxter Webinar Schema Markup with Martha van Berkel, Wednesday, July 8th, 8am PT/11am ET Events 0
hajnasiewicz WP Schema Plugin Local SEO Tools & Software 6
hajnasiewicz Schema markup competitive analysis Local SEO Tools & Software 7
Michael S. Doran Schema for NAP in 2020 Websites, Software, and Security 6
P Schema Markup - SameAs - Using these for citations for branches Citations 14
L LocalBusiness Schema For 5 Different Location Pages Multi-Location Issues 3
Shelly LodgingBusiness or Product / Accommodations schema for rental homes on a vacation rental agency website Local Search 1
djbaxter How to Add a COVID-19 Announcement to Your Website with Schema Google News: Important Changes & Features 1
P Can you recommend a person or company to create Schema? Local Search 6
djbaxter Another option? Update your cancelled or postponed events with Schema Google My Business & Google Maps 0
djbaxter New schema properties for virtual, postponed, and canceled events Google My Business & Google Maps 0
T Has anyone had success reporting schema spam to google? Spam on Google 5
K Schema Markup for Betting/Gambling sites Recycle Bin 0
A WP - Schema Pro. Can it hurt my site? Organic SEO 7
D Schema Markup for Betting/Gambling sites Recycle Bin 0
G Reviews markup showing in serps for LocalBusiness schema markup? What's going on Local Reviews 7
JoyHawkins Google's New Announcement About Review Schema Google News: Important Changes & Features 91
JoshuaMackens Schema Reviews Markup Question Local Search 15
H Schema Markup for Betting/Gambling sites Organic SEO 1
Rich Owings Menu schema not getting picked up by Google Google My Business & Google Maps 21
L Schema and rankings Organic SEO 17
M Schema property "mentions" and its usage for references Organic SEO 6
mikepetersonwi Multi Location Schema Multi-Location Issues 5
S Would it be appropriate to apply the schema attribute Trip to my site? Multi-Location Issues 2
Jo Shaer Blog post Schema - mainEntityOfPage Local Search 0
Jo Shaer Areaserved Schema - English counties/US states? Local Search 2
S Schema: part 1. Is schema code effective when inserted into the body of a page, not into a header Multi-Location Issues 2
Chris Ratchford Schema markup for Orthodontist... Dentist or Physician? Local Search 2
JoshuaMackens Rendering Schema Reviews in HTML Local Reviews 6
Jo Shaer Address Schema on all pages? Local Search 5
P Schema Markup - SameAS & HasMap - Does marking these up help with local ranking factors Local Search 0
JoshuaMackens Service for Schema Reviews Local Reviews 7
Ewan Kennedy Fake review summaries generated by schema markup Local Reviews 9
Larry Correct Schema category Local Search 4
mattheffner GatherUp Schema Code Local Search 8
JustinB Schema Markup on Single Page Websites? Organic SEO 3
Nikki Brown Using Specific LocalBusiness Schema to help Rankings Local Search 4
Jo Shaer Schema through Yoast Local Search 7

Similar threads

Login / Register

Already a member?   LOG IN
Not a member yet?   REGISTER

Most UpVoted Answers

Trending: Most Viewed

LocalU Podcasts

  Promoted Posts

New advertising option: A review of your product or service posted by a Sterling Sky employee. This will also be shared on the Sterling Sky & LSF Twitter accounts, our Facebook group, LinkedIn, and both newsletters. More...
Google Product Exert


Top Bottom