Book Your Travel - Online Booking WordPress Theme

Contents

1. Tour Schedules and Tour types

2. The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=#

3. Images are small, square and do not fit - Book Your Travel

4. How to change texts set in php files

1. Tour Schedules and Tour types

Tours can either exist as one-off tours (they occur on a specific date(s), e.g. 5 May 2020) or as repeated tours (happening seasonally, by being repeated daily, weekly, weekdays etc. e.g. the tour runs every day between 1 May and 1 September 2020).

This one-off vs repeated nature of the tour is dependent on the particular tour's tour type. You set a tour type to be repeated or not via Admin > Tours > Tour types when you add/update the tour type.

After you setup the tour type, you have to make sure your tour is associated with the appropriate tour type by editing the tour itself and picking the appropriate tour type from a dropdown field.

If you set your tour to be associated with a one-off tour type, the schedule for the tour will only have the tour date - ie, the date the tour runs on.

If you set a tour to be associated with a repeated tour type, the schedule for that tour will have a start date and end date signifying the start and end dates of the tour season.

More information about creating tour schedules and tour types can be found in the user guide:

http://themeenergy.com/themes/documentation/wordpress/book-your-travel/#tour-schedules

http://themeenergy.com/themes/documentation/wordpress/book-your-travel/#tour-types-tags

2. The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=#

If your website boasts a large number of WordPress posts (accommodations, cruises, car rentals, tours and locations are custom WordPress post types and there instances also contribute to the overall database size) you may run into the following error thrown by your mysql database:

The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=#

There are two ways to resolve this issue:

1. You ask your webhost to enable SQL_BIG_SELECTS by setting the equally named mysql setting to 1

SQL_BIG_SELECTS=1

or to set the MAX_JOIN_SIZE value a value larger then what you currently have set.

2. If your webhost has a restriction on the above values or refuses to set them, you can also add the following to your theme's functions.php which will do the same thing:

function enable_big_selects_for_bookyourtravel() {
    global $wpdb;
    $wpdb->query( 'SET SQL_BIG_SELECTS=1' );
}
add_action( 'init', 'enable_big_selects_for_bookyourtravel' );

3. Images are small, square and do not fit - Book Your Travel

In order to maximize website performance and SEO rankings, we have implemented a way for you to set your own image sizes that would look crisp while still loading as fast as possible.

However, if you keep the default WordPress thumbnail sizes, they will upload as 150x150px small squares. 

To set image sizes up, go to Settings > Media.

Make sure to also enable "Crop thumbnail to exact dimensions" - this will ensure that all of your thumbnails will be the same size.

Please note that these new image sizes will affect only images you upload after the setting has been set. For rebuilding your previous images, you would need to regenerate your images.

We recommend using AJAX Thumbnail Rebuild, because it allows you to select what images you want to rebuild without overwhelming your server configuration and the computing power your server has available. Alternatively, you can use Regenerate thumbnails plugin to do it all at once.

Further instructions for image optimization can be found here.


4. How to change texts set in php files

The easiest way to change phrases set in php files is to use a plugin like Say What.

https://wordpress.org/plugins/say-what/

After you install and activate the plugin, head to Admin -> Tools -> Text changes to start using it. When adding a new text change, set the text domain field to bookyourtravel and leave the text context field as empty.

Btw, in order to find the exact text phrase to change, we recommend you use the free version of poedit to open the theme's languages/BookYourTravel.pot file and use ctrl-f to find the phrase you are looking to change.