View Product Page

Add a search form using a shortcode

Go to YITH > Booking > Configuration > “Search forms” and copy the shortcode related to the search form that you want to show on your page.

copy shortcode search form

You can set the default category in the search form using the shortcode:
[booking_search_form id=1 cat=current] you can use this particular shortcode in a category page, for example, to allow searching only for bookable products in that category.

You can insert the shortcode of your choice in the Gutenberg blocks, on the page you want, wherever you want.

Insert shortcode into block

The frontend will show the form as you have set it up in the search form settings.

example frontend search form shortcode

Within the form-creation page, you are able to manage the colors of the form.