=== Print-Friendly Page Button ===
Contributors: snehalpancholi
Tags: print, button, print-friendly, shortcode
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

Add a print button via shortcode or floating widget that opens a clean print view, hiding headers, footers, sidebars, and comments.

== Description ==

Print-Friendly Page Button lets visitors print a clean version of your post or page with one click. Place the `[print_button]` shortcode anywhere in your content, or enable a floating button via the settings page. A print stylesheet automatically hides site chrome (header, footer, sidebars, comments) so the printout contains only the main content.

**Features:**
* `[print_button]` shortcode — place a print button anywhere in content
* Optional floating button with configurable corner position
* Settings page: button label, floating toggle, post type selection
* Configurable CSS selectors for elements to hide when printing
* Print stylesheet hides site chrome, adds link URLs, adjusts typography
* No jQuery dependency — pure vanilla JS

== Installation ==

1. Upload `print-friendly-page` to `/wp-content/plugins/`.
2. Activate via the Plugins screen.
3. Go to **Settings → Print Button** to configure.
4. Place `[print_button]` in your content, or enable the floating button.

== Frequently Asked Questions ==

= Can I customise the button label? =
Yes. Change it in **Settings → Print Button** or override per shortcode: `[print_button label="Save as PDF"]`.

= How do I hide additional elements from the printout? =
Add their CSS selectors to the "CSS Selectors to Hide When Printing" field, comma-separated.

== Changelog ==

= 1.0.0 =
* Initial release.
