=== MatrixInn Floating Buttons ===
Contributors: matrixinnsolutions
Tags: floating buttons, whatsapp, click to call, scroll to top, contact buttons
Requires at least: 5.8
Tested up to:      7.1
Stable tag: 1.0.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add customizable floating action buttons to your WordPress site. WhatsApp, Call, Email, and Scroll to Top buttons with full customization.

== Description ==

**MatrixInn Floating Buttons** lets you add beautiful floating action buttons to your WordPress site in minutes - no coding required.

= Available Buttons =

* **WhatsApp** - Opens a WhatsApp chat with a pre-filled message
* **Call** - Direct phone call link for mobile users
* **Email** - Opens default email client with pre-filled subject
* **Scroll to Top** - Appears after scrolling, smoothly returns to top

= Features =

* Enable/disable each button individually
* Choose left or right position
* Set bottom distance from screen edge
* 3 button sizes: Small, Medium, Large
* Custom color picker for each button
* Tooltip text for each button
* Show delay (0-10 seconds)
* Device control: show on Desktop only, Mobile only, or Both
* Scroll to Top threshold - set when the button appears
* Clean uninstall - removes all options on deletion

= Lightweight & Fast =

* No external dependencies
* No jQuery (vanilla JavaScript)
* CSS animations via transitions only
* Minimal DOM footprint

== Installation ==

1. Upload the `matrixinn-floating-buttons` folder to `/wp-content/plugins/`, or install via **Plugins > Add New**.
2. Activate the plugin through the **Plugins** menu.
3. Go to **Floating Buttons** in your WordPress admin sidebar.
4. Configure your buttons and save.

== Frequently Asked Questions ==

= How do I add a WhatsApp button? =

Go to **Floating Buttons > WhatsApp**, enable the button, enter your phone number in international format without the + sign (e.g. 447700900000), and save.

= Can I show buttons only on mobile? =

Yes. Go to **Floating Buttons > General** and set "Show On" to "Mobile Only".

= Does this plugin slow down my site? =

No. The plugin loads a small CSS file and a tiny vanilla JavaScript file. No external libraries or fonts are loaded.

= Where are settings stored? =

All settings are stored in WordPress `wp_options`. No custom database tables are created.

= What happens when I uninstall the plugin? =

All plugin settings are completely removed from the database.

== Screenshots ==

1. Floating buttons on the front end (WhatsApp, Call, Email, Scroll to Top)
2. General Settings tab
3. WhatsApp button settings with color picker
4. Call and Email button settings

== Changelog ==

= 1.0.2 =
* Fixed: Scroll to Top icon could be hidden on themes that add padding to buttons
* Improved: Button styles now reset theme padding, margin and line-height

= 1.0.1 =
* Fixed: Added defer loading strategy for frontend script

= 1.0.0 =
* Initial release
* WhatsApp, Call, Email, and Scroll to Top buttons
* Full color customization per button
* Device visibility control (Desktop / Mobile / Both)
* Show delay option
* 3 button sizes

== Upgrade Notice ==

= 1.0.2 =
Fixes the Scroll to Top icon not showing on some themes.

= 1.0.1 =
Minor fix: script now loads with defer strategy for better performance.
