跳到内容

HPcode Responsive BR

v1.0.0

はにわまん · 2026年10月4日 上架

Show or hide a single line break per screen size, using the same breakpoints as the block editor's responsive states.

正在使用
10 以下
评分
暂无
累计下载
389
最近更新
2026年10月4日
需要 WordPress 7.1+已测试到 7.1.5PHP 7.4+

截图

Choosing the screen sizes for a line break.
Choosing the screen sizes for a line break.
Markers show where the breaks are. Hover one to see which screen sizes it applies to.
Markers show where the breaks are. Hover one to see which screen sizes it applies to.

This plugin adds a Responsive line break item to the rich text toolbar. Put the caret where you want the break, tick the screen sizes it should apply to, and insert it.

Breakpoints

The screen sizes come from settings.viewport in theme.json, through the same core function that drives the editor’s @mobile and @tablet states. Themes that do not set it get the WordPress defaults.

In the editor

A small marker shows where each break is, even at widths where it does not apply. Hover it to see the screen sizes, click it to change them.

Development

The editor script in build/ is compiled from the TypeScript sources in src/, which are
included in this plugin. To rebuild them:

npm install
npm run build

The build uses @wordpress/scripts (webpack). package.json and tsconfig.json ship with the
plugin so the output can be reproduced.

Plums

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

导航

说明

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

© 2026 Plums