$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>admin - Disable the "Skip to Toolbar" tabbing accessibility feature|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

admin - Disable the "Skip to Toolbar" tabbing accessibility feature

matteradmin11PV0评论

Is there a WordPress setting or hook that I can use to disable the WordPress "Skip to Toolbar" accessibility feature?

I'm referring to the small popup that appears when tabbing through form controls:

I'd like for the default tabbing functionality to be restored (to tab through my fields without this skip to toolbar step in-between), preferably without having to change the tabindex for any/all of the form elements on my page.

Is there a WordPress setting or hook that I can use to disable the WordPress "Skip to Toolbar" accessibility feature?

I'm referring to the small popup that appears when tabbing through form controls:

I'd like for the default tabbing functionality to be restored (to tab through my fields without this skip to toolbar step in-between), preferably without having to change the tabindex for any/all of the form elements on my page.

Share Improve this question asked Nov 29, 2017 at 10:54 GeorgeGeorge 11310 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

It's not possible without JavaScript. The HTML for it is output in the WP_Admin_Bar in a private and protected method with no filter.

You can remove them after the page has loaded with JS like so:

function wpse_287259_remove_skip_link() {
    echo "<script>jQuery( '.screen-reader-shortcut' ).remove();</script>";
}
add_action( 'wp_after_admin_bar_render', 'wpse_287259_remove_skip_link' );

I hope it goes without saying that this is something you should do just for yourself and not do for unsuspecting users who might need or want the accessibility benefits.

Post a comment

comment list (0)

  1. No comments so far