Overview
HTML blocks let you embed custom content, third-party widgets, forms, and code into your CraftedStays pages. This is useful for adding functionality that isn't built into the templates.
Adding an HTML Block
Go to your site's Template Editor
Navigate to the page where you want to add the block
Click "Add Section"
Select "HTML" from the available sections
Configure the section:
Title - Optional heading above your content
Subtitle - Optional subtitle
HTML code - Paste your HTML/embed code here
6. Save changes
β
Common Uses for HTML Blocks
Embedding Forms
Google Forms
In Google Forms, click Send > Embed
Copy the
<iframe>codePaste into HTML block
Typeform
In Typeform, go to Share
Click Embed in a web page
Copy the embed code
Paste into HTML block
Jotform
In Jotform, click Publish > Embed
Copy the iframe embed code
Paste into HTML block
Embedding Widgets
Elfsight Widgets
Create your widget at elfsight.com
Copy the embed code provided
Paste into HTML block
Social Media Feeds
Most social media platforms provide embed codes:
Find the embed option in the platform
Copy the embed/iframe code
Paste into HTML block
Adding Booking Widgets to Custom Pages
If you want a booking widget on a custom landing page:
Get your booking widget code from your PMS or from Settings
Create an HTML block on your custom page
Paste the booking widget code
QR Codes
Generate a QR code using any QR code generator
Download as an image OR get embed code
Add to HTML block (as image or embed)
Example HTML Code
Simple Formatted Text
<div style="text-align: center; padding: 20px;"><h2>Welcome to Our Properties</h2><p>We offer the finest vacation rentals in the area.</p><p><strong>Call us:</strong> (555) 123-4567</p></div>
Embedded YouTube Video
<div style="text-align: center;"><iframe width="560" height="315"src="https://www.youtube.com/embed/VIDEO_ID"frameborder="0"allowfullscreen></iframe></div>
Line Breaks and Basic Formatting
<p>First paragraph</p><p>Second paragraph</p><br><p><strong>Bold text</strong> and <em>italic text</em></p>
Tips for Using HTML Blocks
Keep It Simple
Basic HTML works best
Avoid complex JavaScript that might conflict with the site
Test your embeds before publishing
Mobile Responsiveness
Test how your content looks on mobile devices
Use responsive embed codes when available
Consider wrapping content in a responsive container:
<div style="max-width: 100%; overflow: hidden;"><!-- Your embed code here --></div>
Styling Considerations
HTML blocks inherit some styles from your template
You can add inline styles for custom formatting
Avoid overriding global site styles
Troubleshooting
Embed not showing
Check that the embed code is valid HTML
Some embeds require HTTPS - make sure your site uses it
Try the embed on a simple HTML page to verify it works
Widget loads slowly
Third-party widgets load from external servers
This is normal and outside CraftedStays control
Choose lightweight embed options when available
Embed breaks page layout
Check for unclosed HTML tags
Add a container div with max-width
Test with simpler code first
JavaScript not working
Some JavaScript may conflict with site scripts
Try using simple iframe embeds instead
Contact support for complex integrations
What NOT to Put in HTML Blocks
Sensitive information (API keys, passwords)
Malicious scripts (these will be blocked)
Heavy animations (slow down page load)
Tracking scripts (use the dedicated analytics integration instead)

