diff --git a/lib/full-site-editing/templates.php b/lib/full-site-editing/templates.php index 0ecfcc9a68d8e..fd571fbef14f6 100644 --- a/lib/full-site-editing/templates.php +++ b/lib/full-site-editing/templates.php @@ -192,3 +192,94 @@ function set_unique_slug_on_create_template( $post_id ) { } } add_action( 'save_post_wp_template', 'set_unique_slug_on_create_template' ); + +/** + * Print the skip-link script & styles. + * + * @return void + */ +function gutenberg_the_skip_link() { + + // Early exit if not an FSE theme. + if ( ! gutenberg_supports_block_templates() ) { + return; + } + ?> + + + + + +