=== SMX-Floating Contact Buttons ===
Contributors: seoenmexico
Donate link: https://www.seoenmexico.com/
Tags: whatsapp, floating button, contact, click to call, whatsapp chat
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 1.2.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Professional floating contact buttons for WhatsApp, Phone, and Email — fully configurable from the WordPress dashboard.

== Description ==

SMX-Floating Contact Buttons adds professional floating contact buttons to your WordPress site. Enable WhatsApp, Phone, and Email buttons independently and configure every aspect from the dashboard.

**Features:**

* Three contact channels: WhatsApp, Phone, and Email
* Enable or disable each button independently
* Customizable background color and icon/text color per button
* Configurable position (left or right)
* Separate mobile settings: button size, offsets, spacing, and layout direction (vertical or horizontal)
* Page visibility control: all pages, home only, include or exclude specific pages by ID
* Hide on mobile or desktop devices
* Four entry animations: bounce, pulse, slide, and none
* Expandable labels on hover (desktop)
* Google Tag Manager / GA4 dataLayer integration on click events
* Configurable button size, spacing, border radius, and z-index
* Automatic cleanup on uninstall
* Translation-ready with full i18n support

**How it works:**

1. Go to Settings > Floating Buttons after activation
2. Enable the channels you need (WhatsApp, Phone, Email)
3. Enter your contact details
4. Customize colors, position, size, and visibility
5. Save — buttons appear immediately on your site

No external services are contacted. No data is collected. The plugin works entirely within your WordPress installation.

== Installation ==

1. Upload the `smx-floating-contact-buttons` folder to the `/wp-content/plugins/` directory, or install directly through the WordPress Plugins screen.
2. Activate the plugin through the Plugins screen.
3. Go to **Settings > Floating Buttons** to configure.

== Frequently Asked Questions ==

= Does this plugin slow down my site? =

No. The plugin loads a single lightweight CSS file (under 5KB) and a minimal JS file. No external scripts or libraries are loaded.

= Can I show buttons only on specific pages? =

Yes. Under the Visibility tab you can choose to show buttons on all pages, home only, specific pages (by ID), or all pages except specific ones.

= Does it work with caching plugins? =

Yes. The plugin is fully compatible with caching and CDN solutions including WP Rocket, W3 Total Cache, LiteSpeed Cache, and Cloudflare.

= Can I have different settings for mobile? =

Yes. The Mobile tab lets you set independent button size, offsets, spacing, and layout direction (vertical or horizontal) for screens under 768px.

= Does it integrate with Google Analytics? =

Yes. Every button click pushes a `smxfcb_contact_click` event to the dataLayer, which Google Tag Manager and GA4 can capture automatically.

= Can I change the icon and text color? =

Yes. Each button has separate background color and icon/text color pickers in its settings tab.

== Screenshots ==

1. WhatsApp settings tab with color pickers
2. Mobile settings tab with independent controls
3. Visibility settings with page selection helper
4. Floating buttons on a live site (desktop)
5. Floating buttons on mobile (vertical layout)

== Changelog ==

= 1.2.0 =
* Changed: All functions, constants, options, CSS classes, and CSS variables now use the `smxfcb` prefix
* Removed: Custom CSS field (use the WordPress Customizer instead)
* Removed: Plugin URI header (not yet published)

= 1.1.0 =
* Added: Independent mobile settings (button size, offsets, spacing, layout direction)
* Added: Mobile tab in settings
* Added: Horizontal button layout option for mobile
* Added: Icon and text color picker per button

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.2.0 =
All prefixes updated to smxfcb for WordPress.org compliance. Custom CSS field removed — use the WordPress Customizer instead.
