Skip to main content

Adding the RP Promap App Embed Manually

Here’s the clean, supported way to manually add an App Embed to the Home page in Shopify’s Dawn theme

Updated over 2 months ago

How to Manually Add an App Embed to the Homepage (Dawn Theme)

Applies to:

  • Shopify Online Store 2.0

  • Dawn theme

  • Rose Perl App Embeds (Store Locator, Pickup, Delivery, ProMap, etc.)


Overview

In Shopify’s Dawn theme, App Embeds do not automatically render visually on the homepage.

This is expected behavior.

  • App Embeds load scripts and markup invisibly

  • You must manually choose where the app appears

  • The homepage does not support app sections, so manual placement is required

This guide shows the supported method for displaying a Rose Perl app embed on the home page of the Dawn theme.


Step 1: Enable the App Embed

This step is required for the embed to load at all.

  1. Go to Shopify Admin → Online Store → Themes

  2. Click Customize

  3. Open App embeds in the left sidebar

  4. Toggle ON the Rose Perl app embed

  5. Click Save

⚠️ If the app embed is disabled, the app cannot be rendered anywhere on the site.


Step 2: Open the Theme Code

  1. Go to Online Store → Themes

  2. Click the menu next to your theme

  3. Select Edit code

  4. Open the file:
    layout/theme.liquid


Step 3: Add a Homepage Placeholder

Inside theme.liquid, locate the main content area.
In Dawn, this is usually inside:

<main id="MainContent">

Add the following placeholder where you want the app to appear:

<div id="roseperl-app-home"></div>

This placeholder acts as an anchor point for the app embed.


Step 4: Move the App Embed Into Place

Still in theme.liquid, scroll to the bottom of the file.

Just before the closing </body> tag, add the following script:

<script> document.addEventListener('DOMContentLoaded', function () {   const appEmbed = document.querySelector('#locator-app-embed');   const target = document.querySelector('#roseperl-app-home');    if (appEmbed && target) {     target.appendChild(appEmbed.parentNode);   } }); </script>

What this does

  • Finds the Rose Perl app embed once it loads

  • Moves it into the homepage placeholder

  • Ensures compatibility with Dawn’s lazy loading behavior


Step 5: Save and Publish

  1. Click Save

  2. Refresh your storefront homepage

  3. The app should now appear in the selected location


Notes Specific to the Dawn Theme

  • The homepage cannot use “Add section → App”

  • JavaScript placement is required for homepage embeds

  • This method:

    • Works with future app updates

    • Survives theme updates

    • Avoids legacy snippet installs


Troubleshooting

App does not appear

  1. Right-click the page → Inspect

  2. Confirm the embed exists in the DOM:

    #locator-app-embed

In some Dawn versions, the embed may be wrapped inside a Shopify container.

If so, update the selector to:

document.querySelector('.shopify-app-block #locator-app-embed')

Still not working?

  • Confirm the app embed is enabled

  • Confirm you saved theme.liquid

  • Clear cache and reload the page


Recommended Best Practice

Whenever possible:

  • Use App Embeds or App Blocks

  • Avoid legacy snippet installs

  • Only use manual placement for homepage or advanced layouts

Did this answer your question?