=== AddonLogic Dyslexia-Friendly Font Toggle ===
Contributors: snehalpancholi
Tags: accessibility, dyslexia, font, toggle, a11y
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a visitor-controlled toggle that switches body text to a dyslexia-friendly font, with localStorage persistence across pages.

== Description ==

Dyslexia-Friendly Font Toggle lets visitors switch your site's text to a more readable font at the press of a button. The preference is saved in localStorage so it carries across page loads — no account or login needed.

**Features:**
* Four font options: OpenDyslexic (Google Fonts), Lexie Readable stack, Arial, Verdana
* Floating auto-insert button or manual `[dyslexia_toggle]` shortcode placement
* Four corner positions for the floating button
* Configurable button labels (active/inactive)
* Configurable CSS selector to limit font swap to specific elements
* localStorage persistence — preference survives navigation and refresh
* ARIA `aria-pressed` state for screen reader compatibility
* Zero jQuery dependency

== Installation ==

1. Upload the `dyslexia-friendly-font-toggle` folder to `/wp-content/plugins/`.
2. Activate via **Plugins → Installed Plugins**.
3. Go to **Settings → Dyslexia Font** to configure.

== Shortcodes ==

`[dyslexia_toggle]`

| Attribute   | Default              | Description                        |
|-------------|----------------------|------------------------------------|
| label_on    | *(from settings)*    | Button text when font is active    |
| label_off   | *(from settings)*    | Button text when font is inactive  |

== Frequently Asked Questions ==

= Will this affect my admin dashboard? =
No. Assets are only loaded on the public-facing frontend.

= Can I use the shortcode instead of the floating button? =
Yes. Disable auto-insert in settings, then place `[dyslexia_toggle]` anywhere in your content or widget.

= What is OpenDyslexic? =
OpenDyslexic is a free, open-source typeface designed to mitigate some of the visual stress that dyslexic readers experience. It is loaded from Google Fonts only when selected.

== Changelog ==

= 1.0.0 =
* Initial release.

== Screenshots ==

1. Floating toggle button in the bottom-right corner.
2. Settings page with font and position options.
3. Before/after comparison with OpenDyslexic font active.
