Getting Started
Publish the widget
Integrate the booking widget on your website
3 min min read
The booking widget is a component you can embed on your website so your customers can book directly. It's fully customizable and adapts to any design.
Get the integration code
- In the side menu, go to "Widget" → "Code"
- In the "Integration code" section you'll find the code
- Click on "Copy code"
Example code
<!-- Reserva de Hamacas Widget -->
<div id="reserva-hamacas-widget"></div>
<script src="https://cdn.reservadehamacas.com/widget.js"></script>
<script>
ReservaHamacas.init({
clientId: 'your-client-id',
container: '#reserva-hamacas-widget'
});
</script>
Selecciona para copiar
Integration options
Full integration (recommended)
Insert the complete widget on your page:
<div id="reserva-hamacas-widget" style="width: 100%; min-height: 600px;"></div>
Selecciona para copiar
Booking button
If you prefer a button that opens the widget in a modal:
<button onclick="ReservaHamacas.open()">
Book sun lounger
</button>
Selecciona para copiar
Direct link
You can also link directly to your booking page:
https://reservadehamacas.com/book/your-client-id
Selecciona para copiar
Customization
Colors
You can customize the widget colors:
ReservaHamacas.init({
clientId: 'your-client-id',
theme: {
primaryColor: '#2563eb',
secondaryColor: '#f3f4f6'
}
});
Selecciona para copiar
Language
The widget automatically detects the browser language, but you can force one:
ReservaHamacas.init({
clientId: 'your-client-id',
locale: 'en' // es, en, de, fr, it, pt
});
Selecciona para copiar
Default zone
If you have multiple zones, you can preselect one:
ReservaHamacas.init({
clientId: 'your-client-id',
defaultZone: 'beach-zone-id'
});
Selecciona para copiar
WordPress integration
If you use WordPress:
- Go to Appearance → Widgets
- Add a "Custom HTML" block
- Paste the integration code
- Save the changes
Wix integration
- In the Wix editor, add an "HTML embed" element
- Paste the integration code
- Adjust the container size
- Publish the changes
Verify the integration
After installing the widget:
- Visit your website
- Verify that the widget loads correctly
- Make a test booking
- Check that the booking appears in your dashboard
Troubleshooting
Widget doesn't load
- Verify that the code is correctly copied
- Check that there are no errors in the browser console
- Make sure your subscription is active
Incorrect styles
- Verify that there's no CSS from your website interfering
- Use
!importantin container styles if necessary
Congratulations!
You've completed the initial setup of Reserva de Hamacas. Your booking system is ready to receive customers.
Recommended next steps
- Manage bookings - Learn to manage incoming bookings
- Analytics dashboard - Analyze your business performance
- Technical documentation - For advanced integrations