Installing the Paloma Widget on a Shopify Site

Shopify uses liquid templates to build it’s sites. A root page in the template will need to be edited to add the script, and then a custom button or link needs to be added to make it work.

Add the Snippet

  1. Login to your Shopify backend
  2. On the menu at the left, find Online Store, and click on Themes
  3. In the Themes section, click the “Customize” button on the current theme
  4. In the … in the top left, click it, and chose “Edit Code”
  5. Choose the theme.liquid, and edit that file. Right before the closing </body> tag, add the snippet we’ve provided you.

  6. Hit Save in the top left corner.

Add a Button

The script is now added, now you need to add a button.

  1. Go into the theme, and find the “Edit Code” option
  2. Find the liquid file that corresponds to the page you want to edit. For example, the image-banner.liquid file in the Sections folder controls how the main page’s hero section is layed out.
  3. The simplest option is to just add a new button in wherever makes sense. The below code is what an example primary button might look like that will trigger the widget to open:
<a class="palconTrigger button button--primary" href="javascript:void(0);">Plan your Event</a>

Advanced

If the above simple button doesn’t work, there are infinite other options. Below are just a couple.

Edit an Existing Button

  1. Any button on the page that is there during initial page load with the class palconTrigger will open the widget.
  2. On the image-banner.liquid page, there is configuration for two buttons on the main hero section. Add a class named palconTrigger to the class list of the button to whichver of the two buttons you prefer, and when clicked that button will trigger the paloma widget.
  1. For links in the header menu, need to add on into Navigation, and change the link to #. Then find the corresponding id of the header item, and add the following script to the main script you added back in the install portion:
togglePaloma = () => { const iframe = document.getElementById("palcon-iframe"); if (iframe) iframe.style.display = iframe.style.display === "none" ? "block" : "none"; };
document.getElementById('HeaderMenu-plan-your-event').addEventListener('click', function() { togglePaloma(); });

Adding a new Custom Liquid Section

If you’re working on a contact or events related page and the current them isn’t fitting, you can add a totally custom section that features a button that will trigger the widget. The sample below has a header in the current style, a descriptor, and the button.

  1. Click “Customize” on your current theme
  2. Navigate to the page that you want
  3. In the Header, Template, or Footer section at the left, click the “Add Section” option.
  4. In the Seach box, type “Custom Liquid” and then choose that option.
  5. Fill in your raw HTML or Liquid into the “Liquid Code” property at the right.

Below is a sample:

<div class="isolate">
  <div class="rich-text content-container color-scheme-1 gradient rich-text--full-width content-container--full-width" style="padding-top:40px; padding-bottom:52px">
    <div class="rich-text__wrapper rich-text__wrapper--center page-width">
      <div class="rich-text__blocks center"><h2 class="rich-text__heading rte inline-richtext h1 scroll-trigger animate--slide-in" data-cascade="" style="--animation-order: 1;">
                Planning an Event?
              </h2><div class="rich-text__text rte scroll-trigger animate--slide-in" data-cascade="" style="--animation-order: 2;">
                <p>We love hosting events! Click the button below to get started learning about our offers and submitting an event or private party inquiry.</p>
              </div><div class="rich-text__buttons scroll-trigger animate--slide-in" data-cascade="" style="--animation-order: 3;"><a href="#" class="palconTrigger button button--primary">Plan your Event</a></div></div>
    </div>
  </div>
</div>