Hide Scrollbar Force
Hide Scrollbar Force
Description
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.
* Developer-friendly filter hook (hide_scrollbar_force_enabled) for conditional loading.
Installation
- 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.
Faq
No, it only hides the scrollbar visually. Users can still scroll smoothly using mouse wheels, trackpads, touch gestures, or keyboard arrow keys.
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).
Yes, developers can use the hide_scrollbar_force_enabled filter in their theme’s functions.php file. For example:
add_filter( ‘hide_scrollbar_force_enabled’, function( $enabled ) { return ! is_page( ‘contact’ ); } );
Reviews
Recommended
By Supje on January 23, 2026
Works instantly. Thanks!
Changelog
1.4.1
- Fixed Text Domain header to match the official plugin slug (
hide-scrollbar-force). - Added
hide_scrollbar_force_enabledfilter hook for conditional control. - Minified inline CSS output and added
function_existscheck to prevent naming collisions.
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.