Configuration Guide for Local SEO

Last update: 17 January, 2017

If you've already installed the Local SEO plugin, you can start using it.

Unsure how to properly represent your company? Google has some great guidelines for representing your business in search results.

Table of Contents

Local SEO Plugin Settings

You can find your Local SEO Settings by going to SEO → Local SEO.

1
Log in to your WordPress website. When you're logged in, you will be in your 'Dashboard'. On the left-hand side, you will see a menu. In that menu, click on 'SEO'.
2
The 'SEO' settings will expand providing you additional options. Click on 'Local SEO'.
Yoast SEO > Local SEO

Single Location Details

You can enter your single location details by filling in the sections. For "Business Type" you should enter the business type that best describes your business. If there are no options that best describe your business, we suggest going with "Local Business". You can learn more about different business types here: My business type is not listed.

Local SEO Settings

Longitude and Latitude

Enter your longitude and latitude details. If you are not sure what they are, we suggest leaving it blank and allowing the plugin to automatically calculate it for you.

Screen Shot 2016-08-11 at 4.08.34 PM

Advanced Settings

The advanced settings section comes with six settings.

  • Unit System: This option is used to output the system when calculating distance.
  • Default Map Style: This option specifies the default display of the map.
  • Address Format: Select the right format for your address. Since different countries display addresses differently, we ask that you contact pluginsupport@yoast.com if yours is not listed.
  • Default Country: Select the country your business resides in.
  • "Show Route" Label: This option allows customization of the default label that appears in the show route box.
  • Custom Marker: This option allows a custom map marker to display instead of the default Google map marker.

Screen Shot 2016-08-11 at 4.10.02 PM

Multiple Locations

If you have multiple locations, please tick the checkbox and save the plugin settings to enable this feature.

1
Check 'Use Multiple Locations' in the Local SEO settings.
Click to enable
2
Click 'Save Changes' to accept default location settings.

Advanced Tip: You can customize the slugs and labels to match your niche.
3
Now all your location details are stored as Custom Post Types. On the left-hand side, you will see a new menu item. Click on 'Locations'.
4
Click on 'New Location' and enter the details for the location. This will serve as a landing page for the individual location. Customize the page with information about your location. Shortcodes are available for your convenience.

New Business Details

Business Details for Multiple Locations

In the multiple location Business Details section you will have five different subsections: Copy Data , Business Details , Longitude and Latitude , Map , and Opening Hours .

    • Copy Data: This option allows you to copy data from another location.

Screen Shot 2016-08-11 at 4.33.08 PM

    • Business Details: You will need select your business type that best describes your business. If you do not see you business type, we suggest selecting "Local Business". Then fill in the other information about your business.

Screen Shot 2016-08-12 at 2.39.42 PM

Screen Shot 2016-08-11 at 4.40.40 PM

    • Longitude and Latitude: This section is used to specify your exact location. If you are not sure, leave it blank and the plugin will automatically calculate it.

Screen Shot 2016-08-11 at 4.43.05 PM

    • Map: This section allows you to drag exactly where you want your marker to be. You can also set a unique logo and map marker for this business. Your map marker should be at least 100px x 100px.

Screen Shot 2016-08-11 at 4.45.21 PM

    • Opening Hours: This section allows you to customize the hours of the business. If you have two sets of hours a day, enabling that feature will provide additional times for each day. If you want to use the 24hr format or hide the opening hours option, you can enable it by going to SEO->Local.

One Set of Hours

Screen Shot 2016-08-11 at 4.53.42 PM

Two Sets of Hours

Screen Shot 2016-08-11 at 4.56.38 PM

To disable the second set of hours (perhaps your business has two sets of hours everyday except Sunday) select "closed" from the second set of hours.

screen_shot_2016-10-12_at_12_25_02_pm

On the front-end you can expect the second set of hours to not appear.

screen_shot_2016-10-12_at_12_38_42_pm

Enable 24hrs or Hide Opening Hours

Screen Shot 2016-08-11 at 5.08.53 PM

Note : If you've previously entered the location details as a single location, these locations details will be ignored. Make sure you enter all your locations in the Locations section.
5
Click 'Publish'. Repeat for each location.

Slugs and Labels for Multiple Locations

When multiple locations are enabled options to edit the slug (part of the URL) and labels will appear. We suggest customizing them to match your niche in the Local SEO settings.

Location Slug

Locations slug

The slug for your location pages. Default slug is locations. Therefore you can find all the locations onhttp:///locations/. If you change it to, let's say, "stores" the URL to view them all will be http:///stores/.

This slug must be unique and not used elsewhere in your site.
Locations label singular

The singular label for your location pages. Default label is Location.

Locations label plural

The plural label for your location pages. Default label is Locations.

Locations category slug

The slug for your location categories. Default slug is locations-category. If you change it to, let's say, "stores-category" the URL to view them all will be http:///stores-category/.

This slug must be unique and not used elsewhere in your site.

Opening hours

By default the opening hours are displayed in am/pm time format. If you want to use the 24 hour format, please check this on the settings page. Also, if you have two sets of opening hours per day, you can check that option as well. If you are closed be sure to select that option in the drop-down menu.

closed

To show the opening hours on your website you can use a widget or shortcode.

Single Location

If you have a single location, you can enter the details on the Local SEO settings page.

Multiple Locations

If you have multiple locations, you will find this with the Business Details for each Multiple Locations

Submit your Geo Sitemap to search engines

You don't have to submit the geo-sitemap to Google Search Console (former Google Webmaster Tools) yourself. The plugin automatically adds it to /sitemap_index.xml, so all you have to do is submit /sitemap_index.xml to Google Search Console (former Google
Webmaster Tools). Which you probably already did! But if you haven't, please follow the steps here.

Widgets

You can view the widgets by going to Appearance->Widgets. These widgets may be used to display to address details or a map (we're using Google Maps for this).

  1. Show Address Widget
  2. Show Map Widget
  3. Show Opening Hours Widget
  4. Store Locator Form Widget
Note: The location dropdown list will only be visible if you've set more than one location.

Show Address Widget

You will need to select a location from the drop-down menu.The map widget allows complete customization. By selecting the boxes you can customize what exactly is displayed. The options listed in the location widget are self-explanatory.

The extra comment section about the bottom may be useful if you have unique information about your business your customers need to know such as parking, gate entrances, or a door buzzing procedure.

Back End
Show Address Widget

Front End
Screen Shot 2016-08-12 at 4.38.30 PM

Show Map Widget

The map widget controls how the map is displayed

  • If you have multiple locations Be sure to select a location from the drop-down menu
  • All Locations By selecting "Show all Locations", the map will show all your locations rather than the one specified in the drop-down menu.
  • Map Dimensions The dimensions of the map are controlled by the height and width options
  • Zoom Level Zoom level controls how the map is viewed. 1 is the farthest away and 21 is the closest.
  • Show State, Country, URL Enabling "Show State, Show Country, and Show URL" in the info-window provides some additional information for users when they click on the map marker. The default info-window displays the address, city, and zip/post code.
  • Route Planner Enabling Show Route Planner displays a route tool that users can use to help plan their trip

Default Info-Window Settings
Screen Shot 2016-08-12 at 3.58.47 PM

Enabling Show State, Show Country, Show URL in info-window

Info Window

Map Widget with Show Route Planner enabled

Screen Shot 2016-08-12 at 4.00.08 PM

Show Openings Hours Widget

This widget shows your opening hours.

  • If you use multiple locations be sure to select your location
  • Select the days you want to show
  • Hide Closed Days should be enabled if you had set your opening hours to be closed. If you have this option will not show those days
  • Extra Comment is useful for displaying extra information about your hours such as extended hours, special hours, closing early etc.

Back End
Screen Shot 2016-08-12 at 4.17.13 PM

To set your hours to be closed navigate to the location and change the hours in the drop-down menu

closed

Front End
Screen Shot 2016-08-12 at 4.40.55 PM

Store Locator Form Widget

This widget is used to display a location feature. This will help users know where the businesses are located. The widget comes with several features that need to be explained.

  • Search label is used to describe the search. You can use "Find Nearest Business" or "Search" or any other label you think may entice users to search
  • Default Radius is set to 10km and is used to calculate the radius of the search.
  • Select Page is needed so the plugin knows where to display the results.

Back End
Screen Shot 2016-08-12 at 4.27.52 PM

Front End
Screen Shot 2016-08-12 at 4.35.54 PM

ShortCode Buttons

Map, Address, Opening Hours and Store locator information can be added through the use of a button. These buttons will appear across all posts, pages, and custom post types.

  1. Map button
  2. Address button
  3. Opening hours button
  4. Store locator button

Map Button: When clicking the 'Map' shortcode button the following popup will appear. If you use multiple locations be sure to select the right one from the drop-down box.

As you can see, this is really easy to use! Just select and set everything the way you want! And this map is actually responsive as well, meaning it will resize based on your browser/screen size! If you want to see what they look like live, you can see them on our Local SEO demo site: http://local.yoastdemo.com/maps-examples/ You can also add the map using non-button shortcodestoo.

Address Button: When clicking the 'Address' shortcode button it will show this popup. You can also add the the address shortcode using a non-button shortcode too. If you use multiple locations be sure to select the right one from the drop-down box. You can also customize it to display the kinds of information useful for your customers.

Opening Hours Button: When clicking the "Opening hours" short code button it will show this popup. You can also add the opening hours using a non-button shortcode too. If you use multiple locations be sure to select the right one from the drop-down box.

Adding store locator

Store Locator Button: When clicking the "Store locator" shortcode button it will show this popup. You can also add the store locator using a non-button shortcode too. If you use multiple locations be sure to select the right one from the drop-down box.

Choose the options and define what the results should look like. This will then insert a shortcode into your page, which looks something like [wpseo_storelocator], it's probably best if you give that a line of its own in your content.

You can see on our live Local SEO demo site what the store locator looks like and how it works: http://local.yoastdemo.com/location-finder/

Shortcodes

Actual shortcodes may still be used. Here are the shortcodes you can use:

  1. Address shortcode
  2. Map shortcode
  3. Opening Hours shortcode
  4. Store Locator shortcode

Address shortcode

Enter this in the content of your post or page: [wpseo_address]

You can use the following options:

  • id: the ID of your location. Only use this attribute when you have multiple locations and/or you're using this shortcode on another page than the location page itself (for example your contact page)
  • oneline: true/false. Whether to have address all on one line.
  • show_state: true/false. Default to true. Whether to show the State/Region or not.
  • show_country: true/false. Default to true. Whether to show the Country or not.
  • show_phone: true/false. Default to true. Whether to show the Phone number or not.
  • show_phone_2: true/false. Whether to show another phone number or not.
  • show_fax: true/false. Whether to show a fax number or not.
  • show_email: true/false. Whether to show an email or not
  • show_email: true/false. Whether to show an email address or not.
  • show_url: true/false. Whether to show a url or not.
  • show_vat: true/false. Whether to show a vat number or not.
  • show_tax: true/false. Whether to show a tax number or not.
  • show_coc: true/false. Whether to show a Chamber of Commerce ID number or not.
  • show_logo: true/false. Whether to show a logo or not.
  • hide_closed: true/false. Whether you want to hide your closed days or not.
  • comment: Need to enter information. Any information entered between the " " will be displayed.
  • show_opening_hours: true/false. Default to false. Whether to show the opening hours or not. When the opening hours are not filled in it will show 12:00 AM as default text.
  • oneline: true/false. Default to false. Whether to show the address information in one line (true), or one line per address part (false).

Two other parameters if used will result in the business name and the business address from not displaying.

screen-shot-2016-10-18-at-12-08-06-pm

  • hide_name: true/false. Whether to display the business name or not.
  • hide_address: true/false. Whether to display the business address or not.

Full example using all parameters: Using a one "1" or the word "true" makes the parameter appear. Using a zero "0" or the word "false" makes the parameter not appear. Hiding Business Name and Address are not shown in this example.

 

screen-shot-2016-10-18-at-12-08-22-pm

[wpseo_address id="237"  oneline="1" show_state="1" show_country="1" show_phone="1" show_phone_2="1" show_fax="1" show_email="1" show_url="1" show_vat="1" show_tax="1" show_coc="1" show_logo="1" show_opening_hours="1" hide_closed="1" comment="Extra Comment"]

Note: you can also call this function directly in your PHP code:

<!--?php if( function_exists( 'wpseo_local_show_address' ) ) { wpseo_local_show_address( array( 'echo' => 'true' ) );<br ?--> }
?>

You can use the same attributes as described by the shortcode. Therefore you need to pass them as an array, like this:

<!--?php // Can be used in any (template) file, will do the same as shortcode [wpseo_address] if( function_exists( 'wpseo_local_show_address' ) ) { $params = array( 'echo' => true,<br ?--> 'id' => 237,
'show_state' => true,
'show_country' => true,
'show_phone' => true,
'oneline' => false,
);
wpseo_local_show_address( $params );
}

Map shortcode

Enter this in the content of your post or page: [wpseo_map]

You can use the following options:

  • id: the ID of your location. To show all of your locations (if you have multiple locations of course) use all as value
  • width: number in pixels. Default is 400.
  • height: number in pixels. Default is 300.
  • zoom: number of zoom level. Default is 12. Higher number means more zoomed in.
  • map_style: Describes the kind of map available. Four options are available:
    roadmap: Shows the Google roadmap
    hybrid: Shows a hybrid map
    satellite: Shows a satellite map
    terrain: Shows a terrain map
  • scrollable: true/false. Whether to make the map scrollable or not.
  • draggable: true/false. Whether to make the map draggable or not.
  • show_route: true/false. Default to true. Whether to show a form field for using a route planner.
  • Show_state: true/false. Whether to show the state in the info window or not.
  • show_country: true/false. Whether to show the country in the info window or not.
  • show_url: true/false. Whether to show the url in the info window or not.
  • show_email: true/false. Whether to show the email in the info window or not.
  • default_show_infowindow: true/false. Whether to show the info window automatically or not.

Full example using all the Map shortcode parameters:Using a one "1" or the word "true" makes the parameter appear. Using a zero "0" or the word "false" makes the parameter not appear.

screen-shot-2016-10-18-at-12-21-23-pm

 

[wpseo_map id="237"  width="400" height="300" zoom="-1" map_style="hybrid" scrollable="1" draggable="1" show_route="1" show_state="1" show_country="1" show_url="1" show_email="1" default_show_infowindow="1"]

Note: you can also call this function directly in your PHP code:

<!--?php if( function_exists( 'wpseo_local_show_map' ) ) { wpseo_local_show_map(); } ?-->

You can use the same attributes as described by the shortcode. Therefore you need to pass them as an array, like this:

<!--?php // Can be used in any (template) file, will do the same as [wpseo_map] in posts/pages. if( function_exists( 'wpseo_local_show_map' ) ) { $params = array( 'echo' => true,<br ?--> 'id' => 347,
'width' => 800,
'height' => 600,
'zoom' => 5,
'show_route' => true
);
wpseo_local_show_map( $params );
}

Opening Hours shortcode

Enter this in the content of your post or page: [wpseo_opening_hours]

You can use the following options:

  • id: the ID of your location. Only use this attribute when you have multiple locations and/or you're using this shortcode on another page than the location page itself (for example your contactpage)

Full example:

[wpseo_opening_hours id=43]

Note: you can also call this function directly in your PHP code:

<!--?php if( function_exists( 'wpseo_local_show_opening_hours' ) ) { wpseo_local_show_opening_hours( array( 'echo' => true ) );<br ?--> }
?>

You can use the same attributes as described by the shortcode. Therefore you need to pass them as an array, like this:

<!--?php // Can be used in any (template) file, will do the same as [wpseo_opening_hours] if ( function_exists( 'wpseo_local_show_opening_hours' ) ) { $params = array( 'id' => 237,<br ?--> 'hide_closed' => false,
'echo'=> true,
'comment' => ''
);
wpseo_local_show_opening_hours( $params );
}

Store Locator Shortcode

Documentation coming soon.

That's it! Of course, if you have company videos, you should be optimizing those with our Video SEO plugin!

Was this article helpful? ·