If you need to make any width/height adjustments to your iframe embed, you can do so by going back to your section file (template-page-closeby.liquid) and changing the styling of your iframe there. Update your Shopify page so that it uses your new Closeby template.ġ0. This will ensure it renders the new section you created in the previous steps.Ĩ. Note: these instructions are for showing your embedded map within a Shopify "page".ġ. The dia attribute is the building block that will allow you to display video, images, and 3D models on product pages. However, if you think you are comfortable enough to do this, the following instructions should walk you through the process. This can be quite complicated and often Shopify themes will have slightly different code, so our instructions may be slightly different than what you will see. To restrict your map to a specific category, you can do so by following these instructions. Change the "width" and "height" attributes to values that work well on your webpage. Once editing your Shopify theme, add the following HTML code to your pages copied from your maps page. To get started, you will need to view your theme's code by clicking "Edit code": You can always reach out to our team and we can do our best to assist you as well. While this may seem intimidating if you are not familiar with code at all, hopefully this article can walk you through the process. Save the changes and preview the product page with the embedded video. Embed the HTML code provided earlier or copy the iframe code from the custom video embed generator. Create a new product or edit an existing one. If you believe you need even more code-level control over the integration, use the following guidelines to help your setup.īecause of the way Shopify's theming works, you will need to edit the theme's code itself in order to install the map within the page. Embedding Videos on Products: - Go to the products section in Shopify. The vast majority of users do not need to do this, so if possible, it's usually simpler to use the "Custom HTML" method shown above or one of the integration options shown in this article. To see more steps on how to remove the launcher from your Shopify store, click here.īelow are more detailed instructions for editing the Shopify theme code to accomplish what you are hoping to achieve. So, feel free to disconnect your store in the Map Installation in the " Global Overlay" section if you are choosing to not use the Overlay installation.
![iframe html code shopify iframe html code shopify](https://www.simplilearn.com/ice9/free_resources_article_thumb/iframe.gif)
If you are going to choose to disable the launcher and only embed your map on a particular page, you do not need you to have your Shopify store connected to your map installation settings.
![iframe html code shopify iframe html code shopify](https://arifpro.com/wp-content/uploads/2022/11/1fab08c00cc34c219373cbf33a6b966d.jpg)
The most straightforward way to install your Closeby map to your Shopify theme is by simply creating a "Custom HTML" block and adding your embed code to it. Note: You can find you map embed code by visiting your map installation page. If you have tried that approach and would still like more custom control, then proceeding with the following instructions may work better. Click HTML Code to add an HTML code widget to the page. For most use-cases, you should be able to use the Shopify theme editor section that is labelled "Store Locator - Closeby" to easily add your map to your theme.