Back to Blog

WordPress Floating Button: How to Add WhatsApp, Phone & CTA Buttons

A WordPress floating button stays visible as users scroll, giving them instant access to WhatsApp chat, phone calls, or any CTA. This guide covers how to add a floating button in WordPress, positioning best practices, mobile optimization, and plugin options.

Key Takeaways

  • Floating buttons keep critical actions visible during scroll, reducing friction for user contact
  • WhatsApp buttons can increase contact conversions by 20-40% due to visibility and ease of use
  • Bottom-right is the default position; users expect floating elements there and it works well on mobile
  • Touch targets should be minimum 44x44px (60px recommended) for mobile-friendly interactions
  • Multiple buttons should stack vertically with 10px gaps; avoid overlapping with chat widgets or cookie banners

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.

How to Add a Floating Button in WordPress

There are two main approaches to adding a WordPress floating button: using a plugin (recommended) or custom CSS/JavaScript. Here's the step-by-step process for each method.

Method 1: Using a Plugin (Recommended)

The fastest way to add a floating button in WordPress:

  1. Install a floating button plugin
    Go to Plugins → Add New → Upload Plugin. We recommend Starter Buttons Pro ($19, lifetime license, no bloat).
  2. Configure your button type
    Go to Settings → Starter Buttons. Select: WhatsApp, Phone, Email, Link, or Scroll to Top.
  3. Enter action details
    For WhatsApp: enter your number in international format (e.g., +1234567890). For phone: the number to call. For email: address and optional subject line.
  4. Choose position
    Select from 6 positions: bottom-right (default), bottom-left, bottom-center, top-right, top-left, or top-center.
  5. Customize appearance
    Set background color, icon color, button size, and optional tooltip text. Save and preview.

Method 2: Custom CSS (For Developers)

If you prefer manual implementation, add this to your theme's CSS:

.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);
}

Then add the HTML to your theme's footer.php or via a plugin like Code Snippets:

<a href="https://wa.me/1234567890"
   class="floating-button"
   target="_blank"
   aria-label="Chat on WhatsApp">
    <svg aria-hidden="true">...WhatsApp icon...</svg>
</a>

Accessibility note: Buttons with only icons need aria-label to describe the action for screen readers. The SVG gets aria-hidden="true" since the label already describes the button.

Custom CSS Drawbacks

Manual implementation requires ongoing maintenance: theme updates may override styles, you need to handle mobile responsiveness yourself, and adding multiple buttons requires more complex CSS stacking.

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:

WordPress Floating Button Plugins Compared

Not all floating button plugins are created equal. Here's how the main options compare:

Plugin Price Button Types Positions Best For
Starter Buttons Pro $19 (lifetime) WhatsApp, Phone, Email, Link, Scroll 6 positions Simple, lightweight, no bloat
Float Menu Free / $29 Multi-button menus 4 sides Multiple floating menus
Join.chat Free / $49/yr WhatsApp only 2 positions WhatsApp-focused businesses
Starter Button Chat Free WhatsApp, Messenger, Phone Limited Basic free option
Custom CSS Free (time cost) Any Any Developers who want full control

What to Look For in a Floating Button Plugin

Skip the research. Starter Buttons Pro gives you 6 positions, 5 button types, custom colors, and mobile optimization. $19 once, no subscription, lifetime updates.

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.

Position Comparison

Position Best Use Case Potential Issues
Bottom-Right Default for most sites, user expectation May conflict with chat widgets
Bottom-Left RTL languages, avoiding conflicts Less conventional placement
Bottom-Center Single-purpose landing pages Can obstruct content on mobile
Top-Right Admin tools, less prominent actions Hard to reach on mobile (thumb zone)
Top-Left Back navigation, secondary actions Conflicts with menu hamburgers

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:

Core Web Vitals Impact

Google measures Core Web Vitals for rankings. Good news: well-coded floating buttons score perfectly:

Starter Buttons Pro is built with Core Web Vitals in mind: zero CLS, no external dependencies, inline SVG icons, and under 3KB of CSS.

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 in 2 Minutes

Feature Custom CSS Starter Buttons Pro
Setup time 1-2 hours 2 minutes
Position options Manual coding 6 presets
Mobile optimization DIY responsive CSS Built-in
WhatsApp integration Manual URL format Just enter number
Conflict with chat widgets Debug yourself Multiple positions

If you don't add a floating button: Visitors scroll past your contact info. They leave without reaching out. You lose conversions to friction.

One-time payment. No subscriptions. Lifetime updates.

Get Starter Buttons Pro - $19

Frequently Asked Questions

How do I add a floating button in WordPress?

Install a floating button plugin like Starter Buttons Pro, go to Settings, choose your button type (WhatsApp, Phone, Email, or custom link), select a position (bottom-right is most common), and customize colors. The button will appear on all pages automatically. No coding required.

What is a floating action button (FAB)?

A floating action button is a circular button that stays fixed on the screen as users scroll. It provides quick access to a primary action like contacting via WhatsApp, making a phone call, or scrolling to top. FABs use position: fixed in CSS to remain visible regardless of scroll position.

Where should I place a floating WhatsApp button?

Bottom-right is the standard position for floating buttons. Users expect elements there, it works well on mobile (thumb-friendly zone), and it doesn't interfere with left-aligned content. Use bottom-left only if you have conflicts with existing chat widgets or cookie banners.

What size should a floating button be for mobile?

Minimum 44x44 pixels, but 60x60 pixels is recommended for important actions. Apple and Google both recommend 44px minimum touch targets for accessibility. Smaller buttons frustrate mobile users and significantly reduce click rates.

Can I have multiple floating buttons?

Yes. Stack them vertically with 10px gaps between buttons. Common combinations include WhatsApp + Phone (contact options) or WhatsApp + Scroll to Top (support + navigation). Avoid more than 3 floating buttons as it creates visual clutter.

Do floating buttons affect page speed?

Well-coded floating buttons have minimal impact (under 5KB). Avoid plugins that load heavy JavaScript libraries or external fonts just for button icons. Look for plugins that use inline SVG icons and minimal CSS.

Summary

A WordPress floating button keeps critical actions visible as users scroll. WhatsApp buttons drive instant communication. Phone buttons enable one-tap calling. Position thoughtfully (bottom-right for most sites), optimize for mobile (60px touch targets), 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.