跳到内容

Clear Floats Button

v2.0.0

Graffino · 2015年10月26日 上架

Clear floats in one click: a button for the Classic Editor and a Clear floats block for the Block Editor.

正在使用
2,000+
评分
5.0 / 5
累计下载
2.9 万
最近更新
2026年11月4日
6 条评价需要 WordPress 5.9+已测试到 7.1.5PHP 8.1+

截图

The Clear floats block in the Block Editor: the paragraph after the block starts below the image.
The Clear floats block in the Block Editor: the paragraph after the block starts below the image.
The Clear floats button in the Classic Editor.
The Clear floats button in the Classic Editor.
Find the Clear floats block in the inserter.
Find the Clear floats block in the inserter.

Float an image to the left or right, and the text after it wraps around the image. Sometimes the next part of your post must start below the image. A clear does that.

Block Editor: add the Clear floats block (search for “Clear floats” in the inserter). Content after the block starts below every floated block above it. You can also turn a Separator block into a Clear floats block. When you convert a Classic block to blocks, each clear in it becomes a Clear floats block.

Classic Editor: click the Clear floats button on the toolbar, or press Ctrl + Alt + F (Control + Option + F on macOS). The button also shows in the Classic block. Install the Classic Editor plugin if you use the Classic Editor screen.

Both editors save the same small element: <br style="clear:both;">. It needs no CSS from your theme, and your posts keep their layout if you deactivate the plugin.

Migrate from TinyMCE Clear Float

Clear Floats Button reads the clears of the plugin TinyMCE Clear Float (<br style="clear: both;">, and the empty div of its versions before 1.1). To move:

  1. Install and activate Clear Floats Button.
  2. Deactivate TinyMCE Clear Float.
  3. Your posts keep their clears. When you edit a post, each clear shows as a Clear floats placeholder.

Originally by Miguel Ibero.

Plums

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

导航

说明

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

© 2026 Plums