Fluorescent
Lorenza
Lorenza
  • Lorenza Help Center
    • Start using Lorenza
      • Migrate your theme
      • Theme licenses
    • FAQs
    • Theme updates
      • Upgrade to OS2
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • H1 heading tags
      • SEO for Shopify themes
      • Online store speed
    • Image guide
      • Web ready photography
      • Image sizes
      • File formats
      • Theme image settings
    • Adapting theme content
      • Edit default theme content
      • Multiple languages
      • Dynamic content with metafields
      • Unique content for markets
  • Theme styles
    • Theme settings
    • Style presets
    • Fonts
    • Colors
    • Animation
    • Buttons
  • Pages
    • Templates
      • Home page
      • About page
      • Blogs page
      • Blog posts template
      • Collections list page
      • Contact page
      • Password page
      • Search page
      • 404 page
    • Header
      • Logo
      • Layout and style
      • Mega navigation
      • Transparent header
      • Quick search
      • Customer account link
    • Footer
      • Links block
      • Newsletter block
      • Text and image block
      • Language selector
      • Country selector
      • Payment icons
      • Social media icons
    • Utility bar
      • Announcements
  • Sections
    • Theme sections
      • Blog posts
      • Collapsible row list
      • Collection list
      • Collection list grid
      • Featured collection
      • Featured collection grid
      • Featured collection row
      • Featured product
      • Gallery
      • Image hero
      • Image with text
      • Image with text split
      • Map
      • Mosaic grid (2 columns)
      • Mosaic grid (3 columns)
      • Newsletter
      • Quotes
      • Rich text
      • Shoppable feature
      • Shoppable image
      • Slideshow
      • Slideshow split
      • Testimonials
      • Text columns with images
      • Video
      • Video hero
    • Popups
  • Products
    • Product listings
    • Product badges
    • Quick shop
  • Product pages
    • Product template
      • Pre-order template
    • Layout and style
      • Breadcrumbs
      • Navigation buttons
      • Media gallery
      • Gift recipient form
    • Product page blocks
      • Default blocks
        • Title
        • Price
        • Description
        • Variant selector
        • Quantity selector
        • Buy buttons
        • Local pickup banner
        • Share icons
      • Accordion block
      • Complementary products
      • Information popup
      • Payment block
      • Security block
      • Shipping block
      • Stock level indicator
      • Text block
      • Text with image
      • Text with video
      • App blocks
    • Product page sections
      • Product reviews
      • Recently viewed products
      • Recommended products
    • Variant options
      • Variant chips
      • Variant swatches
        • Enable swatches
        • Use default colors
        • Use custom images
        • Dynamic option availability
        • Show on collections
  • Collection pages
    • Collection template
    • Banner
      • Breadcrumbs
    • Product grid
    • Filters and sorting
  • Cart
    • Cart page
    • Fly-out cart
  • Support
    • Support policy
    • Shopify vs Theme issues
    • Store access requests
  • For developers
    • Custom CSS
    • Custom fonts
    • Custom Liquid
    • Custom JavaScript events
    • Edit Theme JavaScript
Powered by GitBook
On this page
  • Set up section
  • Configure your map
  • Get a Google Maps API key
  • Custom map JSON
  • Settings reference

Was this helpful?

  1. Sections
  2. Theme sections

Map

Theme section

Last updated 1 year ago

Was this helpful?

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

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.

Set up section

Add this section to any template (except Checkout) and use the drag-and-drop handles to re-order its position. You can add this section multiple times with different content and settings.

Editing a template changes all pages that use that template. To edit specific pages, you can create and assign new templates or use metafields and dynamic sources.

STEPS

In your theme editor (Customize):

  1. Select a Template to edit from the dropdown menu in the top bar.

  2. Under Template, click (+) Add section and select Map.

  3. Change the order of your sections by using the drag and drop handles ⋮⋮

  4. Click on the title block to change the Heading text for the section.

  5. Click on the Store info block to add your address and opening hours.

Configure your map

To add a Google Map, you will need to set up a Google Maps API Key.

STEPS

In your theme editor (Customize):

  1. Click on the Map section to open the settings.

  2. (Optional.) Add an Image for the map section.

    This image will display as a fallback image if the map does not load.

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

  4. Return to the list of sections to find your new Map section.

    Use the drag handles to rearrange the order of your sections:

  5. Click Save in the top-right corner.

Get a Google Maps API key

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

STEPS
  1. Select the Maps product.

  2. Create a project for your Shopify store.

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

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.

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.

Check out the following video for more information:

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

Settings reference

Click on the section to find the following settings:

Setting
Description

Heading

Enter heading text to display as a section title.

Store information

Add your store information, like your address and hours.

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 can generate one using the directions

Custom map JSON

Map link text

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


Related links

To learn more, see:

Sign up for Google Maps Platform. (.)

The following video shows you how to do this from the here:

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

Using the website, you can choose different map themes or tweak map settings.

You can paste JSON configuration in this field to change the look and feel of your map. You can find some map presets using Google's .

Get a Google Maps API key
Link
Google Cloud Platform Google Maps dashboard
API Credentials
Google Maps Platform Styling Wizard
Image with text
Rich text section
Map styles