=== Smoothscroller ===

Contributors: neilgee
Donate link: https://wpbeaches.com/
Tags: smooth, scroll, links, anchor
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.1
Plugin Name: Smoothscroller
Plugin URI: https://wpbeaches.com/
Description: Smoothscroller
Author: Neil Gowran
Version: 1.2.1
Author URI: https://wpbeaches.com/
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This plugin adds a smooth scroll effect to anchor links on the same page.
Options to add the effect globally or on certain posts/pages.


== Description ==

This plugin adds a smooth scroll effect motion to anchor links on the same page.
You can apply the effect to all posts/pages or certain posts/pages and adjust scroll speed.

The links are bound by the <strong>id</strong> attribute.

For the source/origin element, link to the target like so, with a <strong>href</strong> attribute of the target <strong>id</strong> <code><a href="#example"></a> </code>

For the target element, you give it a corresponding <strong>id</strong> attribute like so - <code><h2 id="example">the target</h2></code>



== Installation ==

This section describes how to install the plugin:

1. Upload the `smoothscroller` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Options are in Settings => Smoothscroller


== Frequently Asked Questions ==

= How do I make a link on the same page =

The links are bound by the <strong>id</strong> attribute.

For the source/origin element, link to the target like so, with a <strong>href</strong> attribute of the target <strong>id</strong> <code><a href="#example"></a> </code>

For the target element, you give it a corresponding <strong>id</strong> attribute like so - <code><h2 id="example">the target</h2></code>


== Usage ==

The settings are found via the dashboard Settings > Smoothscroller

- Select to apply to all post and pages

- Select to have on home page only

- Select to have on certain pages only

- Select to have on certain posts only

- Choose the speed of the scroll


== Screenshots ==

1. Image of internal options

== Changelog ==

= 1.2.1 =

* Changed the default scroll duration from 200 ms to 800 ms.

= 1.2.0 =

* Tested with WordPress 7.1.
* Replaced the legacy CDN-hosted jQuery scrolling libraries with a local, dependency-free script.
* Added reduced-motion support and keyboard focus handling for improved accessibility.
* Fixed Front/Home Page targeting when individual page or post IDs are also saved.
* Hardened settings validation and modernized the settings screen.
* Added WordPress and PHP requirement headers.

= 1.0.0 =

* Initial release.
21/08/15
