You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That worked. Thanks. My bad. I didn't consider wp_footer(). I incorrectly assumed the_block_template_skip_link() was being applied to wp_body_open() because of the skip-link's position in the page.
I can see now that the skip-link's position is determined in relation to the site wrapper using JavaScript:
// Get the site wrapper.
// The skip-link will be injected in the beginning of it.
sibling = document.querySelector( '.wp-site-blocks' );
Description
I'm creating a block theme from scratch using FSE.
I'm trying to understand how the skip-link is added: #30336 (comment).
I want to stop the skip-link's script and style being added to each page.
I've tried the following in functions.php:
I’m not removing the skip-link; I’m replacing it because I need to wrap it in a div and change the link text to title case:
I can remove the skip-link using jQuery but I’d prefer to stop it being added in the first place using PHP.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: