How to add OTA Sync Booking Engine Widget on your website?

Widget is website element which can be added to your website and is displayed like search bar or search button. This article will show you can install our pre-built widget on your existing website. These do require a minimum knowledge of HTML, so make sure to be careful when adding them.

How does it look?

All the colors are customizable

Placing the code is super simple. Just copy the code form the bellow and change few things such as your property ID (lcode) and background color od the widget.

<div id='engineForm'> </div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

    <script type="text/javascript" src="https://admin.otasync.me/engineWidget/script.js"></script>
    <script> displayEngineForm("#engineForm", 1574161953, "#306bad", "#ffffff");</script>

Now, some websites do have jQuery already included so you do not need to call it. So if your site has jQuery already (or simply the code above does not work) then use simple version:

<div id='engineForm'> </div>
    <script type="text/javascript" src="https://admin.otasync.me/engineWidget/script.js"></script>
    <script> displayEngineForm("#engineForm", 1574161953, "#306bad", "#ffffff");</script>

Now how to find your lcode you can see here:

  1. Go to Settings
  2. Go to General
  3. On bottom you have this number, copy it and paste instead number above in bold
Copy this lcode and paste it instead code above

Finally how to change the background and text color on engine is simple using HEX values. These are the codes #306bad and #ffffff in code above. First code is background color and second is text color.

Read more on how to choose your HEX color here: https://htmlcolorcodes.com/

Was this article helpful?

Related Articles