跳到内容

WP Distraction Free View

v1.9.0

Mehul Gohil · 2016年3月16日 上架

Adds frontend Reader Mode so visitors can focus on posts, pages, and selected public post types.

正在使用
10+
评分
暂无
累计下载
2,833
最近更新
2026年10月4日
需要 WordPress 6.0+已测试到 7.1.5PHP 8.2+

贡献者

截图

Reader Mode settings screen.
Reader Mode settings screen.
Reader Mode toggle on frontend content.
Reader Mode toggle on frontend content.
Reader Mode modal with reading time, print/fullscreen controls, and the Reader settings side panel.
Reader Mode modal with reading time, print/fullscreen controls, and the Reader settings side panel.

WP Distraction Free View adds a clean frontend Reader Mode to WordPress, helping visitors focus on your content without sidebars, widgets, navigation, and visual clutter.

WordPress core already includes distraction-free writing tools for the admin editor. This plugin is for the frontend visitor reading experience.

Use it to offer focused reading for posts, pages, and selected public custom post types. Visitors can open content in a polished Reader Mode overlay, use the Reader settings control in the modal header to adjust font size, switch between light/dark/sepia themes, choose a comfortable content width, print the reader view, or use browser fullscreen.

Features

  1. Frontend Reader Mode for posts, pages, and selected public custom post types.
  2. Clean reading column with comfortable typography, spacing, and width.
  3. Reader Mode Toggle block for posts, pages, custom post types, and Query Loop templates.
  4. Shortcode support with [wpdfv].
  5. Optional automatic toggle placement before content, after content, or as a floating button.
  6. URL activation with ?reader-mode=1.
  7. Visitor preferences for font size, theme, and content width saved in localStorage only.
  8. Optional reading progress indicator.
  9. Optional estimated reading time.
  10. Block-based Reader Mode templates for full site editing themes.
  11. Scoped Reader Mode custom CSS for administrators with the WordPress CSS editing capability.
  12. WordPress-components settings screen.
  13. Visitor controls to hide media, embeds, or comments while reading, with preferences stored in the visitor browser.
  14. Optional browser-based read-aloud controls.
  15. Structured public Reader Mode content for integrations, with opt-in discovery metadata.
  16. Per-content Reader Mode availability and template overrides.
  17. Lightweight frontend assets with no external tracking, telemetry, or third-party libraries.

Settings Overview

Go to Settings > Reader Mode to configure:

The settings screen is organized into About, Configure, and More Plugins tabs. Reader Mode configuration lives under Configure.

  • Enable Reader Mode for selected public post types.
  • Toggle placement: manual only, before content, after content, or floating.
  • Reading progress.
  • Estimated reading time.
  • Reader preference controls.
  • Default reader theme: light, dark, or sepia.
  • Default content width: narrow, default, or wide.
  • Default font size: small, default, or large.
  • Custom toggle label.
  • Custom exit label.
  • Reader Mode custom CSS.
  • Reader template.
  • Optional read-aloud controls and public discovery metadata.

Each public content editor can inherit the global Reader Mode settings or override availability and template choice for that item.

Automatic toggle insertion is disabled for new installs. Existing installs keep their previous automatic insertion behavior during upgrade unless it was already disabled.

Usage

Use the Reader Mode Toggle block in posts, pages, public custom post types, single templates, and Query Loop templates.

Use the shortcode:

[wpdfv]

Reader Mode can also open from the URL on enabled single content:

https://example.com/my-post/?reader-mode=1

Setup and troubleshooting guide:

https://github.com/mehul0810/wp-distraction-free-view/blob/main/docs/reader-mode-setup.md

Template Customization

The Reader Mode content is rendered through block-based templates. The plugin registers a default Reader Mode layout and a WP Distraction Free View pattern category for block themes.

Themes and site-specific code can add templates with the wpdfv_modal_templates filter.

Template definitions accept a non-empty block-markup content string and optional label, description, category, and preview image and alt text. See the developer API guide for the structured content endpoint, WordPress Abilities API integration, template contract, and extension filters.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums