Flight Search Widget
The Flight Search widget is a simple web component that you can use in your website to display a flight search. It is a simple HTML element that will require minimue to no technical knowledge.
Installation
Step 1
To include the Flight Search Widget you will need to place the following script tag within the HTML code of the desired page:
<script src="https://unpkg.com/airport-one-embeddable-widgets@latest/dist/airport-one-embeddable-widgets.iife.js"></script>
Code copied to clipboard!
NOTE: If you are using a CMS like WordPress, you can add the script tag to the header of your website by adding it to the header.php file of your theme, within the <head> tag. Using this apporach you will only need to use this code once, and the widget will be available on all pages of your website.
Step 2
To use the Flight Serach Widget you can place the following code where you want the widget to appear, changing YOUR_IATA with your airport IATA code:<flight-search-form origin="YOUR_IATA" ></flight-search-form>
Code copied to clipboard!