Fluorescent Logo
Back to the index

Map

Use the Map section to promote your brick-and-mortar retail stores. This section is designed specifically for your address information and store hours.

Map section

At the bottom of the map section’s image, you can create a link to another page, perfect for linking to Google Maps with directions to your store.

Get directions link

Add a map section

To add a map section:

  1. From your theme’s “Customize” screen, choose Home page from the pages drop-down menu at the top of the screen.

    Drop-down menu with page types listed

  2. Scroll down the list of home page settings until you see the Add section button.

    Add section button

  3. Choose Map from the list of sections, and press the Add button.

    This opens the featured collection settings.

  4. Choose the Style for the section, either Default or Contrast.

    If you select Contrast, this section uses Lorenza’s contrast colors.

  5. Add Small heading, Heading, and Subheading text.

  6. Add Hours and Address text blocks.

    These rich text fields allow you to add multiple lines of text, perfect for street addresses and store contact information.

  7. Use the Heading alignment to change the text alignment of the section. Either Left or Center.

  8. Choose a Max width of text, between 16 and 50.

    The text max width lets you control the shape of the text, and make it look good no matter how long your collection descriptions are.

  9. Add an Image for the map section. This could even be an actual map image, if you want.

  10. The next fields (Map address, Google Maps API key, and Custom map JSON) require some additional set up.

    To learn more see the Get a Google Maps API key

  11. Once you’ve got a Google Maps API key configured, you can add Map link text, like “Get directions”, that links to your address Google Maps.

  12. Use the Back to settings (<) button to go back to all of the home page settings again. Use the drag handles to rearrange the order of your home page sections:

    Shopify section drag handles

  13. Use the Save button in the top-right corner when you are finished editing.

Settings

The map section has the following settings:

Style
Choose a section style, either Default or Contrast. This affects the colors of the current section.
Small heading
Add a small heading to be displayed above the heading.

We recommend keeping this to a word or two.

Heading
Add heading text for the section.

We recommend keeping this to only a few words long.

Subheading
Add a subheading to be displayed under the heading.

We recommend keeping this to a short sentence or two.

Hours
Add your store hours.

This field accepts rich text elements and multiple lines of text.

Address
Add your store address.

This field accepts rich text elements and multiple lines of text.

Heading alignment
Choose how your heading text should be aligned, either Left or Center.
Max width of text
Using the slider, choose how wide the heading text should appear, at a maximum.
Image
Select or upload an image to be displayed.
Map address
Add a street address that Google Maps can use to find your store.
Google Maps API key
Add your Google Maps API key. You should have generated one using the directions above.
Custom map JSON
You can paste JSON configuration in this field to change the look and feel of your map. Learn more

You can find some map presets using Google’s Google Maps Platform Styling Wizard website.

Map link text
Add link text for the map link generated by Google Maps.

Get a Google Maps API key

Here’s what you need to do to get a Google Maps API key:

  1. Sign up for Google Maps Platform. (Link.)

  2. Select the Maps product.

    Google Maps Platform setup step

  3. Create a project for your Shopify store.

  4. Enter your billing information.

    Unless you get more than 500,000 views per month, you will not be charged for map API requests. They will all be paid for with the recurring $200 credit Google gives its Cloud Platform users each month.

After this process, you are granted a Google Maps API key, which you can copy into Lorenza’s map section Google Maps API Key field:

Google Maps API Key popup

The API key should be a large jumbled string of characters, like this: AIzaSyCuv0hqbs8Itd_UvRQ0gAkwe5OxkYw_q08.

We recommend that you restrict your API key so it can only be used on requests to your store’s URL (like https://your-store.com). You can restrict to multiple URLs if you also want to add your https://your-store.myshopify.com address for testing purposes.

The following video shows you how to do this from the Google Cloud Platform Google Maps dashboard:

Your browser does not support the video tag.

If you lost your API key, you can find it again (or regenerate it) from the Google Cloud Platform API Credentials page.

Custom map JSON

Using JavaScript Object Notation (JSON), a form of JavaScript code used to send structured information and configuration, you can change the look and feel of your map.

Using the Google Maps Platform Styling Wizard website, you can choose different map themes or tweak map settings.

Check out the following video for more information:

Your browser does not support the video tag.

Once you have copied the JSON to your clipboard, you can paste it into Lorenza’s Custom map JSON setting.

Related articles

  • Home page
  • Colors
© 2014-2020 Fluorescent Design Inc.   •   hello@fluorescent.co