Sam Scroll Master

설명

Sam Scroll Master (SSM) is a lightweight and modern plugin to enable smooth scrolling across WordPress sites.

Features include:
* Smooth scroll on links within the site.
* Enable/disable for frontend and admin.
* Exclude posts, pages, custom post types, or taxonomies.
* Control per user role or guest users.
* Responsive support for desktop, tablet, and mobile.
* Automatic cache purge on settings save (WP Rocket, LiteSpeed Cache, W3 Total Cache, and more).
* Accessibility ready

Usage

The plugin works automatically on selected pages/posts and devices based on the settings:

  • Enable smooth scrolling for frontend or admin panel.
  • Exclude specific pages, post types, custom post types, or taxonomy terms.
  • Filter by user roles or device types (desktop, tablet, mobile).
  • Whenever you save the settings, all supported cache plugins are purged automatically.

Credits

Developed by SAM Web Design Agency – https://samwda.ir
This plugin uses SmoothScroll for websites by Balazs Galambosi.

License

This plugin is licensed under the GPLv2 or later.
See https://www.gnu.org/licenses/gpl-2.0.html for details.

설치

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Navigate to Settings > Sam Scroll Master to configure options.
  4. Configure frontend activation, user roles, devices, and exclusions as needed.

FAQ

Can I enable smooth scroll only for certain users?

Yes. Use the “User Roles” section in the settings panel to control who sees smooth scroll.

Can I exclude custom post types or taxonomies?

Absolutely. SSM supports exclusions for any post type or taxonomy, including custom ones.

Does it work in WordPress admin?

Yes. You can enable it optionally for WordPress admin panel.

Does it clear the cache automatically?

Yes. On every settings save, SSM purges all caches of supported plugins: WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, WP Fastest Cache, WP Optimize, SG Optimizer, Autoptimize, Hummingbird, Cache Enabler, Breeze, and Swift Performance – so your changes take effect immediately.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Sam Scroll Master”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Sam Scroll Master”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Sam Scroll Master”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.2

  • New: Automatic cache purge on settings save (WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, WP Fastest Cache, WP Optimize, SG Optimizer, Autoptimize, Hummingbird, Cache Enabler, Breeze, Swift Performance).
  • New: samsm_after_purge_caches action hook for third-party cache integrations.
  • New: uninstall.php – all plugin options are now removed on uninstall.
  • Security: AJAX search endpoint is now admin-only (capability check added, nopriv access removed).
  • Security: Whitelist validation for user roles, device types, and post types before saving.
  • Fix: Smooth scroll now correctly loads for guest visitors when the “Guest” role is selected.
  • Fix: Prevented errors when taxonomy term queries return WP_Error.
  • Fix: Taxonomy term exclusions now also apply to pages and all single post types.
  • Fix: Smooth scroll no longer attaches to empty “#” links or links pointing to other pages.
  • Fix: Valid HTML structure in the settings page.
  • Performance: Settings page loads only saved selections; remaining posts are fetched via AJAX search.
  • Performance: Taxonomy term lists are capped to keep the settings page fast on large sites.
  • Dev: Post/Redirect/Get pattern after saving (prevents duplicate submissions on page refresh).
  • Dev: All strings are now translatable (text domain: sam-scroll-master).
  • Dev: Forced RTL direction removed from admin CSS; layout follows the WordPress admin locale.

1.1

Accessibility: Respect user’s prefers-reduced-motion setting – smooth scroll automatically disabled when reduced motion is requested.
Code review: Full code audit and compatibility testing performed on WordPress 7.

1.0

Initial public release with settings page.