More free tools:  InstantLinkHub· Feexio· SwiftConvertHub

How to Add a WhatsApp Button to Your Shopify Store Without an App

Every Shopify app store review section has the same frustrated comment: "Works great — until the free trial ends." For a simple WhatsApp button, you shouldn't need a $9/month app. You need about 10 minutes and a link. Here's exactly how to add a working WhatsApp chat button to your Shopify store without installing anything.

What You'll Build

A floating button (or inline link) that, when clicked on mobile, opens WhatsApp with your store's number and a pre-written message like "Hi, I have a question about an order." On desktop, it opens WhatsApp Web. You'll add it to your store theme once and it'll appear on every page automatically.

Step 1: Create Your WhatsApp Link

Before touching Shopify, generate your link. Go to InstantLinkHub's WhatsApp Link Generator, enter your WhatsApp-enabled phone number in international format (e.g., +15551234567), and optionally write a pre-filled message like "Hi, I have a question about a product." Copy the generated URL — it'll look like:

https://wa.me/15551234567?text=Hi%2C%20I%20have%20a%20question%20about%20a%20product
Advertisement

Step 2: Add the Button to Your Theme

Option A: Floating button (appears on all pages)

  1. In your Shopify admin, go to Online Store → Themes → Edit code
  2. Open the theme.liquid file (under Layout)
  3. Paste the following code just before the closing </body> tag:
<!-- WhatsApp Float Button --> <a href="https://wa.me/YOUR_NUMBER?text=YOUR_MESSAGE" target="_blank" rel="noopener" aria-label="Chat on WhatsApp" style="position:fixed;bottom:24px;right:24px;z-index:9999; background:#25D366;border-radius:50%;width:56px;height:56px; display:flex;align-items:center;justify-content:center; box-shadow:0 4px 12px rgba(0,0,0,0.15);text-decoration:none;"> <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="white" viewBox="0 0 24 24"> <path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967..."/> </svg> </a>

Replace YOUR_NUMBER and YOUR_MESSAGE with your values from the generated link.

Option B: Inline button on a product page

  1. In your Shopify admin, go to Online Store → Themes → Customize
  2. Open a product page template
  3. Add a Custom HTML section and paste:
<a href="https://wa.me/YOUR_NUMBER?text=I%20have%20a%20question%20about%20this%20product" target="_blank" style="display:inline-flex;align-items:center;gap:8px;background:#25D366; color:white;padding:12px 20px;border-radius:8px; text-decoration:none;font-weight:600;"> 💬 Chat on WhatsApp </a>

Step 3: Test on Mobile

After saving, open your store on your actual phone (not the Shopify preview). Tap the button. WhatsApp should open with your number and message pre-loaded. If you see a blank number or the link doesn't open, double-check that your number includes the country code and has no spaces or dashes.

Real-World Example: Handmade Jewelry Store

A handmade jewelry seller in Barcelona adds a WhatsApp float button to her Shopify store with the pre-filled message "Hola, tengo una pregunta sobre un producto" (in Spanish, since most of her customers are local). Within two weeks, she receives 23 WhatsApp inquiries that converted into orders — contacts she says would not have emailed her through the standard contact form.

Optional Enhancements

To hide the button on desktop (where WhatsApp is less natural), add @media (min-width: 768px) { .whatsapp-float { display:none; } } to your theme's CSS. To track button clicks in Google Analytics, add a data-gtag-event attribute or wire up a GA4 event via Google Tag Manager. You can also combine this with a UTM-tagged landing page to measure which campaigns drive the most WhatsApp conversations.

Frequently Asked Questions

Will this button slow down my store?

No. The button is pure HTML and inline CSS — no JavaScript, no external scripts, no third-party requests. It adds essentially zero page weight and won't affect your Core Web Vitals score.

Do I need a WhatsApp Business account for this to work?

No. The link works with any WhatsApp account, personal or business. WhatsApp Business adds extra features (catalog, quick replies, labels) but isn't required for a basic click-to-chat button.

What if my theme updates and overwrites my code?

Shopify theme updates don't typically overwrite custom code you've added to theme.liquid. However, if you install a major theme update, check that your button code is still there. Keeping a backup of the snippet in a text file takes 30 seconds and saves headaches later.

Generate your WhatsApp link first

Create the link with your number and pre-filled message, then paste it into your Shopify theme using the code above.

Create WhatsApp Link
AM

Alex Morgan

Digital Marketing Strategist & Founder, InstantLinkHub

Alex Morgan has spent the past decade at the intersection of digital marketing and web development, helping freelancers, agencies, and e-commerce brands build measurable online strategies. Alex specializes in link-tracking, UTM campaign architecture, and click-to-contact optimization. InstantLinkHub was built out of a simple frustration: too many essential tools were locked behind subscriptions or privacy-invasive dashboards.

Añadir un botón de WhatsApp a tu tienda Shopify no requiere ninguna aplicación de pago. Con HTML básico y el enlace generado en InstantLinkHub, puedes tenerlo funcionando en menos de 10 minutos.

Método 1: Botón flotante global

Aparece en todas las páginas de tu tienda, siempre visible.

Paso 1: Genera el enlace

En InstantLinkHub → pestaña WhatsApp → introduce tu número → añade mensaje predefinido → copia el enlace.

Paso 2: Añade el código al tema

Shopify Admin → Tienda online → Temas → Editar código → theme.liquid → antes del </body>:

<a href="https://wa.me/34612345678?text=Hola"
   target="_blank"
   style="position:fixed;bottom:20px;right:20px;width:56px;height:56px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.3);z-index:9999;text-decoration:none"
   aria-label="WhatsApp">
  <svg width="28" height="28" viewBox="0 0 24 24" fill="white"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/></svg>
</a>

Método 2: Botón contextual en páginas de producto

En product.liquid, después del botón "Añadir al carrito":

<a href="https://wa.me/34612345678?text=Me%20interesa%3A%20{{ product.title | url_encode }}"
   target="_blank"
   style="display:block;text-align:center;background:#25D366;color:white;padding:12px;border-radius:6px;margin-top:10px;text-decoration:none">
  💬 Preguntar por WhatsApp
</a>

{{ product.title | url_encode }} es código Liquid de Shopify que inserta el nombre del producto automáticamente.

Recomendaciones finales

  • Usa un número de WhatsApp Business dedicado para la tienda
  • Configura respuestas automáticas de bienvenida
  • Añade UTMs al enlace para medir cada botón
  • Prueba en iOS y Android antes de publicar
Advertisement