Skip to content

fix(phone): force WhatsApp icon/link for phone widgets when enabled#2722

Merged
Armanul46 merged 2 commits intosovware:buttonfrom
RabbiIslamRony:fix/whatsapp-phone-actions-and-content
Feb 25, 2026
Merged

fix(phone): force WhatsApp icon/link for phone widgets when enabled#2722
Armanul46 merged 2 commits intosovware:buttonfrom
RabbiIslamRony:fix/whatsapp-phone-actions-and-content

Conversation

@RabbiIslamRony
Copy link
Member

Ensure phone elements use WhatsApp icon and wa.me links when WhatsApp is enabled across single action, listing card action, and listing content phone fields. Keep non-phone and non-WhatsApp behavior unchanged.

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Security fix
  • Improvement
  • New Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Text changes
  • Other... Please describe:

Description

  • Force WhatsApp icon (lab la-whatsapp) for phone elements when WhatsApp is enabled.
  • Ensure phone links trigger WhatsApp (wa.me) for:
    • Single page layout > Action
    • All listings layout > Card > Action
    • Listing content phone fields
  • Keep all other elements and non-WhatsApp phone behavior unchanged.

Scope

  • templates/single/action-section.php
  • templates/single/fields/phone.php
  • templates/single/fields/phone2.php
  • templates/archive/fields/phone.php
  • templates/archive/fields/phone2.php

Test Plan

  • Enable WhatsApp in phone field settings.
  • Verify Single page Action phone button shows WhatsApp icon and opens WhatsApp.
  • Verify Card Action phone button shows WhatsApp icon and opens WhatsApp.
  • Verify Listing content phone fields show WhatsApp icon and open WhatsApp.
  • Disable WhatsApp and confirm phone icon/link reverts to normal tel: behavior.
  • Confirm email/button/other elements are unaffected.

Any linked issues

Fixes #

Checklist

Ensure phone elements use WhatsApp icon and wa.me links when WhatsApp is enabled across single action, listing card action, and listing content phone fields. Keep non-phone and non-WhatsApp behavior unchanged.
@Armanul46 Armanul46 merged commit 8df0f1a into sovware:button Feb 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants