Redirect Check Availability button

For some reasons, you don’t want to use our booking system but still using the search form. So you want to redirect to another website when click Check Availability button. I’ll guide you how to custom this:

1. Create child theme.

Refer more about child theme here

2. Deploy in child theme.

In child theme, create folder sailing-child/wp-hotel-booking/search and copy file search.php to the folder (sailing-child/wp-hotel-booking/search/search.php)

In the file search.php, replace line 90: <button type="submit"><!--?php esc_html_e('Check Availability', 'sailing'); ?--></button>

to <a target="_blank" href="link-website"><?php esc_html_e('Check Availability', 'sailing'); ?></a>

See the screenshot http://prntscr.com/iof8aa

Done! Now your site redirects to another website when click Check Availability button.

Best Deals
Get Eduma Now

For Only *
$439 $69

 
GRAB THE DEAL
* Hurry up! Offer ends this Friday!
close-link
ấdsa
ádasd
ádsad
Subscribe
Give it a try, you can unsubscribe anytime.
close-link
20% OFF all LearnPress premium add-ons

GET 20% OFF COUPON NOW
Your information will never be shared
close-link
Download
LEARNPRESS
WordPress LMS
Download the best WordPress LMS now. Completely Free.
close-link
Learn More