AI Verified

Name

WhatsApp and Call Icon

About

Display Sticky WhatsApp and Call image/icon on website

Language

PHP

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

Copy code and paste code snippet plugin. Update WhatsApp Number and Call Number. Change Image/icon links.

Codevault

Mairaj-Uddin-Ahmed

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.4

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

12/01/2024

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

WhatsApp and Call Icon

 
                    
1function add_whatsapp_call_buttons() {
2 ?>
3 <div style="position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;align-items:flex-end;z-index:1000">
4 <a href="https://wa.me/+xxxxxxxxxxx" target="_blank" style="width:40px;height:40px;border-radius:50%;margin-bottom:10px;overflow:hidden;box-shadow:0 4px 8px rgba(0,0,0,.1)">
5 <img src="https://tochat.be/whatsapp-icon-green.jpg" alt="WhatsApp" style="width:100%;height:100%;object-fit:cover">
6 </a>
7 <a href="tel:+xxxxxxxxxxx" style="width:40px;height:40px;border-radius:50%;overflow:hidden;box-shadow:0 4px 8px rgba(0,0,0,.1)">
8 <img src="https://tochat.be/whatsapp-icon-green.jpg" alt="Call" style="width:100%;height:100%;object-fit:cover">
9 </a>
10 </div>
11 <?php
12}
13 
14add_action('wp_footer', 'add_whatsapp_call_buttons');

0

Related Snippets

Please see some snippets below related to this snippet..

General

Unverified

0

Read CSV file without customDelimiter

Added: 6 months ago

Last Updated: 6 months ago

General

AI Verified

1

PHP: Disable Wordpress lazy loading

Added: 9 months ago

Last Updated: 9 months ago

<p>Disables Wordpress lazy loading since we like to manage lazy loading with the Optimole plugin.</p>

General

AI Verified

0

Migrate BasePress -> BetterDocs: 2. Analytics

Added: 8 months ago

Last Updated: 8 months ago

<p>Use these to migrate data from BasePress to BetterDocs, or clone them and customize to migrate to some other structure.</p> <p>Import all 4 snippets, then run them in order. This will handle docs,...

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

General

AI Verified

0

WhatsApp and Call Icon

Added: 5 months ago

Last Updated: 5 months ago

Display Sticky WhatsApp and Call image/icon on website

General

AI Verified

0

Contact Form 7 Spam Protection

Added: 5 months ago

Last Updated: 5 months ago

Contact Form 7 Spam Protection: Protect your contact forms from spam

WordPress Admin

AI Verified

0

Replace the 'Howdy' message on the Admin Bar.

Added: 5 months ago

Last Updated: 5 months ago

Replace the 'Howdy' message on the Admin Bar.