Difference between revisions of "Category:Wordpress"

From Beds24 Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
[[Media:install_1.png|view large]]
 
[[Media:install_1.png|view large]]
  
 +
==Embed your Booking Page ==
  
 
Adjust the general setting for your booking page. You can further customize the booking page in Beds24 in SETTINGS->-BOOKING PAGE
 
Adjust the general setting for your booking page. You can further customize the booking page in Beds24 in SETTINGS->-BOOKING PAGE
Line 28: Line 29:
 
[[Media:embed_3.png|view large]]
 
[[Media:embed_3.png|view large]]
  
 +
 +
 +
== Add Booking Widgets ==
 +
Widgets are inserted via short codes. You can generate the short codes for one or multiple properties. To generate a short code for multiple properties set the selector for "Property" = All SETTING->BOOKING PAGE->BOOKING WIDGETS. Copy the short code from there and paste it where you want to display the widget.
 +
 +
===Booking Box, Booking Strip, Availability Calendar ===
 +
Short Codes for Booking Box, Booking Strip, Availability Calendar are generated in the widget designer in the Beds24 control panel in SETTING->BOOKING PAGE->BOOKING WIDGETS. Copy the short code from there and paste it where you want to display the widget on your Wordpress page..
  
 
Generate the widget in SETTINGS->BOOKING PAGE->BOOKING WIDGETS
 
Generate the widget in SETTINGS->BOOKING PAGE->BOOKING WIDGETS
Line 40: Line 48:
 
[[Media:Wordpresswidget_2.png|view large]]
 
[[Media:Wordpresswidget_2.png|view large]]
  
== Booking Widgets ==
+
If you want to allow guests to search by certain criteria:
Widgets are inserted via short codes.
+
*first create the search criteria in SETTINGS -> BOOKING PAGE ->MULTIPLE PROPERTIES->SEARCH CRITERIA then go to SETTINGS -> BOOKING PAGE ->MULTIPLE PROPERTIES->PROPERTY SETTINGS and assign the applicable criteria to each property
 
+
*Once you have set and assigned your search criteria you can go to SETTINGS-> BOOKING PAGE-> BOOKING WIDGETS. Set PROPERTY = ALL and design your widget, ensuring that you change "Search Filter" to show the search criteria in your booking widget.
===Booking Box, Booking Strip, Availability Calendar ===
+
*Generate the code for the widget and paste it into the source code (Set the Wordpress editor to "Text") where you want to display the widget.
Short Codes for Booking Box, Booking Strip, Availability Calendar are generated in the widget designer in the Beds24 control panel in SETTING->BOOKING PAGE->BOOKING WIDGETS. Copy the short code from there and paste it where you want to display the widget on your Wordpress page..
 
 
 
Use these [http://beds24.clarify-it.com/d/cdgw9g step-by-step instructions] for details.
 
  
 
===Booking Button, Booking Link  ===
 
===Booking Button, Booking Link  ===
Line 55: Line 60:
 
Paste it where you want to display the widget on your Wordpress page.  
 
Paste it where you want to display the widget on your Wordpress page.  
  
For customization options see the "Booking Widgets" section in SETTINGS-BOOKING WIDGETS in Wordpress
+
For customization options for the buttons and links see the "Booking Widgets" section in SETTINGS-BOOKING WIDGETS in Wordpress
  
You can generate the short codes for one or multiple properties. To generate a short code for multiple properties set the selector for "Property" = All SETTING->BOOKING PAGE->BOOKING WIDGETS. Copy the short code from there and paste it where you want to display the widget.
 
 
If you want to allow guests to search by certain criteria:
 
*first create the search criteria in SETTINGS -> BOOKING PAGE ->MULTIPLE PROPERTIES->SEARCH CRITERIA then go to SETTINGS -> BOOKING PAGE ->MULTIPLE PROPERTIES->PROPERTY SETTINGS and assign the applicable criteria to each property
 
*Once you have set and assigned your search criteria you can go to SETTINGS-> BOOKING PAGE-> BOOKING WIDGETS. Set PROPERTY = ALL and design your widget, ensuring that you change "Search Filter" to show the search criteria in your booking widget.
 
*Generate the code for the widget and paste it into the source code (Set the Wordpress editor to "Text") where you want to display the widget.
 
  
 
== Developer Options ==
 
== Developer Options ==

Revision as of 16:07, 3 November 2018

This page explains how to install and customise the Wordpress plugin.

The Wordpress Plugin allows you to add an embedded booking page and/or booking widgets via short codes.

1 Install the Plugin

Add and activate the plugin

Install 1.png view large

2 Embed your Booking Page

Adjust the general setting for your booking page. You can further customize the booking page in Beds24 in SETTINGS->-BOOKING PAGE

Embed 1.png view large


Use the short code [beds24-embed] to add a booking page with pre populated dates.

 NOTE: Do not use [beds24-embed] if you redirect to the booking page from a widget.  Use  	[beds24-landing] instead.

Embed 2.png view large


Use [beds24-landing] to add a booking page which uses the dates chosen on a widgets.

Embed 3.png view large


3 Add Booking Widgets

Widgets are inserted via short codes. You can generate the short codes for one or multiple properties. To generate a short code for multiple properties set the selector for "Property" = All SETTING->BOOKING PAGE->BOOKING WIDGETS. Copy the short code from there and paste it where you want to display the widget.

3.1 Booking Box, Booking Strip, Availability Calendar

Short Codes for Booking Box, Booking Strip, Availability Calendar are generated in the widget designer in the Beds24 control panel in SETTING->BOOKING PAGE->BOOKING WIDGETS. Copy the short code from there and paste it where you want to display the widget on your Wordpress page..

Generate the widget in SETTINGS->BOOKING PAGE->BOOKING WIDGETS

Wordpresswidget 1.png view large


Paste the generated short code to where you want to display the widget

Wordpresswidget 2.png view large

If you want to allow guests to search by certain criteria:

  • first create the search criteria in SETTINGS -> BOOKING PAGE ->MULTIPLE PROPERTIES->SEARCH CRITERIA then go to SETTINGS -> BOOKING PAGE ->MULTIPLE PROPERTIES->PROPERTY SETTINGS and assign the applicable criteria to each property
  • Once you have set and assigned your search criteria you can go to SETTINGS-> BOOKING PAGE-> BOOKING WIDGETS. Set PROPERTY = ALL and design your widget, ensuring that you change "Search Filter" to show the search criteria in your booking widget.
  • Generate the code for the widget and paste it into the source code (Set the Wordpress editor to "Text") where you want to display the widget.

3.2 Booking Button, Booking Link

Booking Button, Booking Link are inserted via these short codes:

  • Booking button: [beds24-button]
  • Booking link: [beds24-link]

Paste it where you want to display the widget on your Wordpress page.

For customization options for the buttons and links see the "Booking Widgets" section in SETTINGS-BOOKING WIDGETS in Wordpress


4 Developer Options

Developers or users with basic knowledge of HTML, PHP and CSS can change the plugin code to customise widgets.

4.1 Developer Options for last generation booking widgets

Example: Change the default values of [beds24-box]

Open your Wordpress dashboard and go to SETTINGS->BEDS24 then click on "Edit"

Search for this file in the right navigation: beds24-online-booking/theme-files/beds24-box.php

Click on on the link to edit:

To change the default number of guests search for:
if (!isset($_REQUEST['numadult'])) $_REQUEST['numadult'] = 2;
and change 1 to your default number of guests e.g. 
if (!isset($_REQUEST['numadult'])) $_REQUEST['numadult'] = 1;
Click "Update File"
To change the default number of nights search for:
if (!isset($_REQUEST['numnight'])) $_REQUEST['numnight'] = 1;
and change 1 to your default min number of nights e.g. 
if (!isset($_REQUEST['numnight'])) $_REQUEST['numnight'] = 3;
Click "Update File"
To change the maximum number of guests of  search for
<?php for ($i=1; $i<=12; $i++) 
change 12 to your max number of guests e.g. 
<?php for ($i=1; $i<=4; $i++) 
Click "Update File"

You can save the file in your theme directory if you want to avoid over-writing if you update the plugin.


Note: Iframes on mobile devices are problematic. Best is if you set up a special mobile page for the page where you have embedded the Iframe which opens the booking page in a new page instead of an Iframe.

Subcategories

This category has only the following subcategory.

Pages in category "Wordpress"

The following 3 pages are in this category, out of 3 total. download this selection of articles as a PDF book