{"id":1071,"date":"2024-03-14T02:41:02","date_gmt":"2024-03-14T09:41:02","guid":{"rendered":"https:\/\/hostex.io\/help\/?p=1071"},"modified":"2026-04-22T20:44:59","modified_gmt":"2026-04-23T03:44:59","slug":"widget","status":"publish","type":"post","link":"https:\/\/hostex.io\/help\/widget\/","title":{"rendered":"How to Embed the Direct Booking Widget into My Website Using Hostex?"},"content":{"rendered":"\n<p>Hostex offers the Direct Booking Widget feature, which allows you to embed it into your own created website, as long as the website supports iframe embedding.<\/p>\n\n\n\n<p><strong>Step-by-Step Guide<\/strong>:<\/p>\n\n\n\n<p>Step 1: Access the Hostex <a rel=\"noreferrer noopener\" href=\"https:\/\/hostex.io\/app\/booking-site\/list\" data-type=\"URL\" data-id=\"https:\/\/hostex.io\/app\/booking-site\/list\" target=\"_blank\">Booking site<\/a> feature and click on &#8220;<strong>Create a site<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"537\" src=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-48.png\" alt=\"\" class=\"wp-image-1072\" srcset=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-48.png 895w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-48-300x180.png 300w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-48-768x461.png 768w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/figure>\n\n\n\n<p>Step 2: Select the option &#8220;<strong>I already have my own booking site.<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"530\" src=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-49.png\" alt=\"\" class=\"wp-image-1073\" srcset=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-49.png 929w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-49-300x171.png 300w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-49-768x438.png 768w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/figure>\n\n\n\n<p>Step 3: Choose your currency and enter your site name (for internal reference only)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"482\" src=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-50.png\" alt=\"\" class=\"wp-image-1074\" srcset=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-50.png 931w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-50-300x155.png 300w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-50-768x398.png 768w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/figure>\n\n\n\n<p>Step 4: Get into your site, and click on &#8220;<strong>+Add listings<\/strong>&#8221; to create the properties you want to sell<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"528\" src=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-59-1024x528.png\" alt=\"\" class=\"wp-image-1667\" srcset=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-59-1024x528.png 1024w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-59-300x155.png 300w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-59-768x396.png 768w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-59-1536x792.png 1536w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-59-2048x1056.png 2048w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-59-18x9.png 18w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 5: Add the necessary rate plans that you want to offer for each property (similar to Booking.com)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"615\" src=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-60-1024x615.png\" alt=\"\" class=\"wp-image-1669\" srcset=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-60-1024x615.png 1024w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-60-300x180.png 300w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-60-768x461.png 768w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-60-1536x923.png 1536w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-60-2048x1230.png 2048w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-60-18x12.png 18w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 6: Add your preferred payment methods in the Payment Account section (Stripe or PayPal)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"624\" src=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-61-1024x624.png\" alt=\"\" class=\"wp-image-1670\" srcset=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-61-1024x624.png 1024w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-61-300x183.png 300w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-61-768x468.png 768w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-61-1536x936.png 1536w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-61-18x12.png 18w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2024\/03\/image-61.png 1898w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 7: Configure widget appearance, search widget, promotion codes (optional)<\/p>\n\n\n\n<p>Step8: Enable and preview the widget for the listing<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"709\" src=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/02\/image-1.png\" alt=\"\" class=\"wp-image-1391\" srcset=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/02\/image-1.png 957w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/02\/image-1-300x222.png 300w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/02\/image-1-768x569.png 768w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/figure>\n\n\n\n<p>Step 8: Copy and embed the widget into your website<\/p>\n\n\n\n<p>By following these step-by-step instructions, you can easily embed the Direct Booking Widget into your website using Hostex. This will enable your customers to make bookings directly through your website, enhancing the booking experience and streamlining your business operations.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h1 class=\"wp-block-heading\">Important Notes<\/h1>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Do not place the widget inside any iframe<\/strong>\uff1aThe widget is designed to replace iframes. It must <strong>not<\/strong> be embedded in an iframe, whether used individually or for linkage between multiple widgets. Almost all functional issues are caused by nested iframes. Due to security policies, iframes impose many restrictions that prevent most features from working properly.<\/li>\n\n\n\n<li><strong>Special case for the WIX platform<\/strong>\uff1aFor users who build websites on the WIX platform and are unable to modify the source code, the widget cannot be used perfectly.<\/li>\n<\/ol>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>Related questions:<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/hostex.io\/help\/direct-booking-site\/\">https:\/\/hostex.io\/help\/direct-booking-site\/<\/a><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-hostex-support-center wp-block-embed-hostex-support-center\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"2aZESxLpPV\"><a href=\"https:\/\/hostex.io\/help\/direct-booking-site\/\">How to create a direct booking website with Hostex?<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;How to create a direct booking website with Hostex?&#8221; &#8212; Hostex Support Center\" src=\"https:\/\/hostex.io\/help\/direct-booking-site\/embed\/#?secret=qVxQvmMmzP#?secret=2aZESxLpPV\" data-secret=\"2aZESxLpPV\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Hostex offers the Direct Booking Widget feature, which allows you to embed it into your own created website, as long as the website supports iframe embedding. Step-by-Step Guide: Step 1: Access the Hostex Booking site feature and click on &#8220;Create a site&#8220; Step 2: Select the option &#8220;I already have my own booking site.&#8220; Step [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[],"class_list":["post-1071","post","type-post","status-publish","format-standard","hentry","category-direct-booking-site"],"_links":{"self":[{"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/posts\/1071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/comments?post=1071"}],"version-history":[{"count":7,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/posts\/1071\/revisions"}],"predecessor-version":[{"id":1737,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/posts\/1071\/revisions\/1737"}],"wp:attachment":[{"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/media?parent=1071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/categories?post=1071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/tags?post=1071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}