Title: Skip To Content Button
Author: Jon @ Twenty Eighty Online
Published: <strong>2020 年 10 月 23 日</strong>
Last modified: 2020 年 10 月 23 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/skip-to-content-button.svg)

# Skip To Content Button

 作者：[Jon @ Twenty Eighty Online](https://profiles.wordpress.org/twentyeighty/)

[下载](https://downloads.wordpress.org/plugin/skip-to-content-button.zip)

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

 [支持](https://wordpress.org/support/plugin/skip-to-content-button/)

## 描述

The Skip to Content Button plugin adds a visually hidden but assistive technology/
keyboard accessible button after the opening body tag that helps users using assistive
technology to skip to a defined area on the page (by default an element with the
id of “main”).

The Skip to Content Button plugin features a settings area where users can define
a custom button class, a custom target, and a custom string that is the label for
the button.

## 安装

To install the Skip to Content Button plugin:

 1. Upload `skip-to-content-button.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to the Skip To Content Button page within the Settings menu
 4. Assign the correct destination to the Destination ID

## 常见问题

### How do I find out what my destination URL is?

The most straight forward way to do this would be to view the page source of the
front-end of your website (in most browsers, right click and press view page source)–
and then look for the main content area of your site (typically this should be a
element) and copy the ID of that tag.

### Can I change this programatically without using the settings page?

Absolutely! The Skip to Content Button has 3 filters:

 * stcb_skip_to_content_button_link – This filters the destination URL in the button
 * stcb_skip_to_content_button_css_class – This filters the CSS Class in the button
 * stcb_skip_to_content_button_text – This filters the Button Text in the button

### The button isn’t displaying in my theme!

This plugin requires the wp_body_open(); to be present in the theme for the button
to load. If this isn’t in your theme edit your theme (or child theme) and place 
wp_body_open(); after the opening tag.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Skip To Content Button」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Jon @ Twenty Eighty Online ](https://profiles.wordpress.org/twentyeighty/)

[帮助将「Skip To Content Button」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/skip-to-content-button)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 5.2.0 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  语言
 * [English (US)](https://wordpress.org/plugins/skip-to-content-button/)
 * 标签
 * [a11y](https://cn.wordpress.org/plugins/tags/a11y/)[accessibility](https://cn.wordpress.org/plugins/tags/accessibility/)
   [wcag](https://cn.wordpress.org/plugins/tags/wcag/)
 *  [高级视图](https://cn.wordpress.org/plugins/skip-to-content-button/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/skip-to-content-button/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/skip-to-content-button/reviews/)

## 贡献者

 *   [ Jon @ Twenty Eighty Online ](https://profiles.wordpress.org/twentyeighty/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/skip-to-content-button/)