Title: Hide Scrollbar Force
Author: Saeed Tosifyan
Published: <strong>2025 年 5 月 4 日</strong>
Last modified: 2026 年 10 月 14 日

---

搜索插件

![](https://ps.w.org/hide-scrollbar-force/assets/icon-256x256.png?rev=3287093)

# Hide Scrollbar Force

 作者：[Saeed Tosifyan](https://profiles.wordpress.org/saeedtx/)

[下载](https://downloads.wordpress.org/plugin/hide-scrollbar-force.1.4.1.zip)

 * [详情](https://cn.wordpress.org/plugins/hide-scrollbar-force/#description)
 * [评价](https://cn.wordpress.org/plugins/hide-scrollbar-force/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/hide-scrollbar-force/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/hide-scrollbar-force/#developers)

 [支持](https://wordpress.org/support/plugin/hide-scrollbar-force/)

## 描述

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.

## 安装

 1. Upload the `hide-scrollbar-force` folder to the `/wp-content/plugins/` directory,
    or install it directly via the WordPress Plugin Directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. 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).

### Can I disable the plugin on specific pages?

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’ ); } );

## 评价

![](https://secure.gravatar.com/avatar/b5c5626ac79d934e37c313c42f91f232f53a03866608c7101b4e4b5a3d87839e?
s=60&d=retro&r=g)

### 󠀁[Recommended](https://wordpress.org/support/topic/recommended-486/)󠁿

 [Supje](https://profiles.wordpress.org/supje/) 2026 年 1 月 23 日

Works instantly. Thanks!

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/hide-scrollbar-force/reviews/)

## 贡献者及开发者

「Hide Scrollbar Force」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Saeed Tosifyan ](https://profiles.wordpress.org/saeedtx/)

[帮助将「Hide Scrollbar Force」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/hide-scrollbar-force)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/hide-scrollbar-force/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/hide-scrollbar-force/)，或通过[RSS](https://plugins.trac.wordpress.org/log/hide-scrollbar-force/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/hide-scrollbar-force/)。

## 更新日志

#### 1.4.1

 * Fixed Text Domain header to match the official plugin slug (`hide-scrollbar-force`).
 * Added `hide_scrollbar_force_enabled` filter hook for conditional control.
 * Minified inline CSS output and added `function_exists` check 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.

## 额外信息

 *  版本 **1.4.1**
 *  最后更新：**4 周前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **7.1.4**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/hide-scrollbar-force/)
 * 标签
 * [css](https://cn.wordpress.org/plugins/tags/css/)[customization](https://cn.wordpress.org/plugins/tags/customization/)
   [hide](https://cn.wordpress.org/plugins/tags/hide/)[scrollbar](https://cn.wordpress.org/plugins/tags/scrollbar/)
 *  [高级视图](https://cn.wordpress.org/plugins/hide-scrollbar-force/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/hide-scrollbar-force/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/hide-scrollbar-force/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/hide-scrollbar-force/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/hide-scrollbar-force/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/hide-scrollbar-force/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/hide-scrollbar-force/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/hide-scrollbar-force/reviews/)

## 贡献者

 *   [ Saeed Tosifyan ](https://profiles.wordpress.org/saeedtx/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/hide-scrollbar-force/)