Back to Blog

How to Add Floating WhatsApp & CTA Buttons to WordPress

A floating action button (FAB) stays visible as users scroll. One tap connects them to WhatsApp, initiates a call, or triggers any action. Here's how to implement floating buttons properly in WordPress.

Why Floating Buttons Work

Users don't want to hunt for contact information. They're on your pricing page, ready to ask a question. If they have to navigate to "Contact" and fill out a form, you've lost momentum.

Floating buttons solve this by keeping key actions always visible:

Conversion Impact

Businesses report 20-40% increases in contact form conversions after adding floating WhatsApp buttons. The psychology is simple: visibility drives action.

Button Types & Use Cases

WhatsApp Chat

The most popular floating button worldwide. Clicking opens WhatsApp with your number pre-filled:

https://wa.me/15551234567?text=Hi,%20I%20have%20a%20question

Perfect for: Service businesses, support, sales inquiries

Phone Call

Uses the tel: protocol for one-tap calling on mobile:

tel:+15551234567

Perfect for: Local businesses, restaurants, emergency services

Email

Opens the default email client:

mailto:hello@example.com?subject=Website%20Inquiry

Perfect for: Professional services, B2B

Scroll to Top

Smooth scroll to page top. No external action, just navigation:

window.scrollTo({ top: 0, behavior: 'smooth' });

Perfect for: Long-form content, documentation, blogs

Custom Link

Any URL: booking system, calendar, specific page:

Implementation

Starter Buttons Pro provides a no-code solution for floating buttons:

  1. Install and activate
    Upload via Plugins → Add New → Upload Plugin.
  2. Configure button type
    Go to Settings → Starter Buttons. Choose: Link, WhatsApp, Phone, Email, or Scroll to Top.
  3. Enter action details
    For WhatsApp: your number (international format). For phone: the number to call. For email: address and optional subject.
  4. Select position
    Choose from 6 positions: bottom-right (default), bottom-left, bottom-center, top-right, top-left, top-center.
  5. Customize appearance
    Set background color, icon color, size, and optional tooltip text.

The CSS Behind Floating Buttons

Floating buttons use position: fixed to stay in place during scroll:

.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366; /* WhatsApp green */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

Positioning Best Practices

Bottom-Right (Default)

The standard position. Users expect floating elements here. Doesn't interfere with left-aligned content.

Bottom-Left

Good for RTL languages or when bottom-right conflicts with other elements (chat widgets, cookie banners).

Bottom-Center

High visibility but can obstruct content. Best for single-purpose landing pages.

Avoid Position Conflicts

Check for other floating elements: chat widgets (Intercom, Drift), cookie consent banners, scroll indicators. Multiple overlapping elements create visual chaos and accessibility issues.

Z-Index Management

Floating buttons need high z-index values to stay above content:

/* Typical z-index hierarchy */
.site-content { z-index: 1; }
.sticky-header { z-index: 100; }
.modal-overlay { z-index: 1000; }
.floating-button { z-index: 9999; }
.cookie-banner { z-index: 99999; }

Mobile Optimization

Thumb Zones

On mobile, users hold phones at the bottom. Bottom-positioned buttons are naturally thumb-accessible. Top positions require reaching, which reduces engagement.

Touch Target Size

Apple and Google recommend minimum 44x44px touch targets. 60px is better for important actions. Smaller buttons frustrate mobile users.

Mobile-Specific Actions

Some actions only make sense on mobile:

Consider showing phone buttons only on mobile devices:

/* Show phone button only on mobile */
.phone-button {
    display: none;
}

@media (max-width: 768px) {
    .phone-button {
        display: flex;
    }
}

Performance on Mobile

Floating buttons should be lightweight:

Multiple Buttons

Some sites need multiple floating actions. Common combinations:

Stack vertically with consistent spacing:

.button-1 { bottom: 20px; }
.button-2 { bottom: 90px; }  /* 60px button + 10px gap + 20px base */
.button-3 { bottom: 160px; }

Add Floating Buttons Today

Starter Buttons Pro supports WhatsApp, phone, email, and custom links. 6 positions, full color customization, mobile-optimized. Setup in 2 minutes.

Get Starter Buttons Pro - $19

Summary

Floating buttons keep critical actions visible. WhatsApp buttons drive instant communication. Phone buttons enable one-tap calling. Position thoughtfully, optimize for mobile, and keep the implementation lightweight.

One button, always visible, dramatically reduces friction for user contact.

H

Haohunter

WordPress developer building lightweight plugins that solve real problems. No bloat, no subscriptions, just tools that work.