Create a javascript file identifydeviceos.js with below code to identify the device OS

The above JS returns the userAgent based on the device. Call the above JS in your header.

Above JQuery just shows or hides the WhatsApp button based on the OS. The button needs to applied .whatsapp_btn class.

Leave a Reply

Your email address will not be published. Required fields are marked *