Przejdź do treści

Phoenix

Phoenix

Add Bookingmood booking calendars to your Phoenix website

Add Bookingmood to your Phoenix website so guests can check availability and book your rental without leaving your site. You set it up once, and every change you make in Bookingmood shows on your website automatically.

Create a widget

  • Create a widget in Bookingmood. Widgets explains how.

  • Click Embed and copy the Inline embed code. You need it in the next step.

Add the widget to Phoenix

Phoenix doesn't run scripts inside HTML blocks, so you add the widget and the script that sizes it separately.

  • Click the + icon to insert content.

Content insertion in Phoenix
  • Click HTML and paste the embed code you copied.

  • Remove the script and style parts, so only the iframe remains.

  • Click + Add.

Embed code input in Phoenix
  • Go to Settings > Custom scripts.

Custom script selection in Phoenix
  • Add a custom script with these settings:

    • Name: a name of your choice, for example Bookingmood resize

    • Script placement: body-tag

    • GDPR compliance: Functional (user consent not required)

    • Optimize script for pagespeed: off

Custom script input in Phoenix
  • Paste the following code and save. If Phoenix shows a warning, you can safely ignore it.

<script>
  window.addEventListener("message", function (event) {
    try {
      const height = JSON.parse(event.data).height;
      if (!(height > 0)) return;
      const frames = document.getElementsByTagName("iframe");
      for (const frame of frames) {
        const frameWindow =
          frame.contentWindow || frame.contentDocument.defaultView;
        if (frameWindow === event.source) {
          frame.height = height;
          frame.style.borderRadius = "12px";
          frame.style.width = "100%";
          frame.style.border = "none";
        }
      }
    } catch {}
  });
</script>

That's it. Changes you make in Bookingmood now show on your website automatically.


Przejmij kontrolę nad swoimi rezerwacjami. Zbuduj własną firmę.

Dołącz do grona 1200+ niezależnych firm oferujących wynajem wakacyjny, które korzystają z Bookingmood, aby zwiększyć liczbę rezerwacji bezpośrednich i zacieśnić relacje z gośćmi.

Rozpocznij bezpłatny 14-dniowy okres próbny
Phoenix | Bookingmood