Configuration Guide for Local SEO

Follow

Configuration Guide for Local SEO

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

Let's just walk through the settings page (find it via 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'.

Your location(s)

Now it's time to enter your location details. If you have just one business location this is pretty straight forward. Just choose the best fitting business type for your business and fill the address details in the fields on the settings page and you're good to go:

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.

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.
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.

Locations slugs & labels

You can edit the slug (part of the URL) and labels to match your niche in the  Local SEO settings.

Locations slug

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

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 address details of your each location.

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!)

Widgets

With this plugin come a few widgets (Appearance → Widgets) to show 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

Show Map widget

Show Openings Hours widget

Store Locator Form widget

Adding maps, address and opening hours

As of version 1.1.6 of our Local SEO plugin we've greatly simplified adding location details to your pages. You can now also add these just by clicking the button when you're adding/editing a page or post.

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

When clicking the 'Map' button the following popup will appear:

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/screensize! 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/

Clicking the 'Address' button will show this popup:

And clicking the "Opening hours" button will show this popup:

Adding store locator

And clicking the "Store locator" button will show this popup:

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

Of course, if you want to use actual shortcodes, this is still possible. 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)
  • 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_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).

Full example:

[wpseo_address id=325 show_state=false show_country=true show_phone=true oneline=false]

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' ) ); } ?>

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,
		'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.
  • show_route: true/false. Default to true. Whether to show a form field for using a route planner.

Full example:

[wpseo_map id=all width=800 height=600 zoom=3 show_route=true]

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,
		'id' => 347,
		'width'	=> 800,
		'height' => 600,
		'zoom' => 5,
		'show_route' => true
	);
	wpseo_local_show_map( $params );
}<br>

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 ) );  } ?>

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,
		'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!

 

Have more questions? Submit a request