Embed Generator

Create custom embeds to showcase our accommodations and experiences on your website

Configuration

Filter by Date Range

Select dates to show only available accommodations for the selected period. Leave empty to show all accommodations.

Embed Code

<iframe
  src="https://www.majascesis.lv/embed/accommodations?lang=en"
  width="100%"
  height="600"
  frameborder="0"
  style="border: none; min-height: 600px;"
  title="Mājas Cēsīs Accommodations"
></iframe>

<script>
  // Auto-resize iframe based on content
  window.addEventListener('message', function(e) {
    if (e.data.type === 'mc-widget-height' && e.data.source === 'majas-cesis-embed') {
      var iframe = document.querySelector('iframe[src*="majascesis.lv/embed"]');
      if (iframe) {
        iframe.style.height = e.data.height + 'px';
      }
    }
  });
</script>

How to Use

  1. 1Select the type of embed you want to create
  2. 2Choose the language (English or Latviešu)
  3. 3For accommodations, optionally select date range to filter available properties
  4. 4Preview the embed in the preview section
  5. 5Copy the embed code and paste it into your website's HTML

Important Notes

  • The iframe will automatically resize based on content
  • Date filtering only works for accommodations embed
  • Dates must be in YYYY-MM-DD format
  • All links open in the parent window for better user experience