Linux 软件免费装
Banner图

Back To Top Block

开发者 philhoyt
更新时间 2026年11月26日 05:56
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

navigation block scroll back-to-top scroll-to-top

下载

1.0.4 1.0.3 1.0.1 1.0.2 1.0.5 1.0.6

详情介绍:

Back To Top Block adds one block, "Back To Top Block", to the block editor. Place it where you want the button to appear, usually at the end of a long post or in a footer template part. Clicking the button scrolls the window to the top of the page. The block settings panel has four controls: The scroll is animated unless the visitor's browser has reduced motion turned on, in which case it jumps. After the scroll, focus moves to the top of the page through the theme's skip link when one exists. The button is a plain <button> with an aria-label and an outline on keyboard focus. Text, background, spacing and typography can be set through the block's style controls. Button text is sanitized on save. Icon URLs are limited to the site's own domain; an icon URL on another domain is dropped.

安装:

  1. Upload the plugin files to the /wp-content/plugins/back-to-top-block directory, or install the plugin through the WordPress plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. In the block editor, add the Back To Top Block to a post, page or template.

常见问题:

Is the button fixed to the corner of the screen?

No. The button sits where you place the block and scrolls with the page. For a button that is always visible, put the block in a template part and position it with your theme's CSS.

Can I use my own icon?

Yes. Choose an image from the media library in the block settings. Images hosted on another domain are rejected when the post is saved.

Which themes does it work with?

Any theme that supports the block editor. Colors, spacing and typography come from the block's style controls, so the button picks up your theme's presets.

更新日志:

1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0