外掛說明
This plugin removes the visible scrollbar from your website across all major browsers (Chrome, Firefox, Safari, Edge) using clean CSS techniques. It ensures that users can still scroll through the content without seeing the scrollbar, providing a modern and seamless browsing experience.
Features:
* Visually hides the vertical and horizontal scrollbars.
* Keeps smooth scrolling via mouse wheel, keyboard, and touch fully functional.
* Lightweight with zero performance overhead (pure inline CSS injection).
* Compatible with modern page builders and responsive modal popups.
安裝方式
- Upload the
hide-scrollbar-forcefolder to the/wp-content/plugins/directory, or install it directly via the WordPress Plugin Directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- The scrollbar is now hidden automatically with no configuration needed.
常見問題集
-
Does this plugin affect scrolling functionality?
-
No, it only hides the scrollbar visually. Users can still scroll smoothly using mouse wheels, trackpads, touch gestures, or keyboard arrow keys.
-
Will it break modal windows or internal scrollable boxes?
-
No, version 1.4 scopes rules strictly to the page viewport (
html, body) and avoids breaking internal scrollable containers (like code blocks, tables, or modals).
參與者及開發者
變更記錄
1.4
- Tested and confirmed compatibility with WordPress 7.1.2.
- Added direct access security check (
ABSPATH). - Removed universal selector conflicts to preserve modal and internal container scrolling.
- Removed redundant closing PHP tag according to WordPress coding standards.
1.3
- Switched to wp_enqueue_style and wp_add_inline_style for WordPress standards compliance.
- Updated license to GPLv2 or later.
1.2
- Improved browser compatibility with forced CSS rules.
- Added higher priority to styles to prevent theme conflicts.
1.1
- Added wrapper technique for better content handling.
1.0
- Initial release.