Adding Xola buttons to a Wordpress.org site is quite simple. This article provides step-by-step instructions on how to integrate the Xola booking buttons on your company website.
Note: WordPress.org and WordPress.com are different platforms, and Xola buttons are installed a bit differently. Instructions on how to install buttons on WordPress.com can be found here.
- Obtain Xola's Global JS Code. Navigate to Settings > Button Code and copy the code from section 1.
- Install 'Simple Custom CSS and JS' plugin. You can find the plugin by following this link or searching for it in the add new plugin section of your WordPress.org account.
- Add Xola's Global JS Code to the Simple Custom CSS and JS plugin. Click 'Add Custom JS' and paste the JS code found in Step 1 and title the code. Then click Publish.
- Obtain the checkout button code. Please follow these steps to find the button code:
- Login to your Xola account
- Select Settings > Button Code
- Under Step 4, find the button you would like to link to and click the 'Copy' button to the right of the experience name
Tip: Not sure what checkout type to use? Have a look at the Types of Checkout article for a look at the different options available to you.
Now, we will be adding your Book Now buttons!
- Navigate to the pages where you would like your Xola checkouts to be located. You can find this by clicking on Pages in the lefthand column of WordPress, and then choosing the page you wish to edit.
- Important to note for this step is that depending on your WordPress site's setup - there may be many ways to add custom HTML on your pages. Due to the highly customizable nature of WordPress, this means there is a chance that certain WordPress themes will require different steps to add in Xola HTML code, and may affect the results that you see.
- Add the Book Now buttons by pasting the HTML button codes into the text boxes in WordPress.
- You can click Preview Changes on the right-hand side to see a preview.
- Once you're satisfied with the changes, select update.
Tip: If you do not click update, your changes will not be published.