Here’s a code that will help you add a Whatsapp button to the sidebar of Handsome Checkout page after the Trust Points.
Paste this snippet into Advanced > Custom JS (footer) field:
1 2 3 4 5 | jQuery(document).ready(function(){ jQuery('<div id="wabtn"><a href="https://api.whatsapp.com/send?phone=77015100000&text=Hello%2C%20test%20message" target="_blank"><img src="https://handsomewp.com/wp-content/uploads/2022/02/whatsapp-button.png" /></a></div>').insertAfter( '.trust-point-wrap' ); }); |
Paste this snippet into Advanced > Custom CSS field:
1 2 | #wabtn { text-align: center; } #wabtn a img { width: auto; max-width: 100%; } |
Optionally you can replace the whatsapp link completely or replace just the message there to yours. And also you could replace the button image if you want. Ideally, you should host the button image on your site.