As far as I understand the wp_head
and wp_footer
actions should still work under FSE in WP 5.9+, through the template canvas PHP file that’s loaded through the locate_block_template()
. That PHP file contains the basic HTML structure and there we find e.g. the familiar wp_head()
and wp_footer()
function calls that we usually had in the old footer.php
and header.php
theme files. The current block template HTML from get_the_block_template_html()
is now displayed within the body tag from the template canvas.
So in FSE use e.g. the theme’s functions.php
file or a custom plugin to add your wp_head
and wp_footer
actions in PHP.
Related Posts:
- How to trigger JS in gutenberg page load
- Gutenberg: Block validation failed
- Change order/position of Gutenberg inspector control panel
- Gutenberg Inspector Controls
- serialize_blocks breaking html tags in content
- How to use getBlockIndex
- Hide or show Gutenberg custom block using date range
- Use page Title in Gutenberg custom banner block
- Gutenberg withInstanceId. When to use it?
- Wrapping Gutenberg Blocks with a div/section/article
- How to access parent block’s attributes in nested block’s save function?
- Testing custom themes / plugins under Gutenberg
- Gutenberg Default attributes are empty
- Group block without inner wrapper
- How to stop Gutenberg injecting inline font styles
- How to get Gutenberg Gallery Block to output thumbnail images?
- Change list of allowed headline levels in Gutenberg
- srcset attribute in Gutenberg gallery blocks
- How can I add arbitrary `data-` attributes to a block’s `edit()` container?
- Gutenburg InnerBlock single child
- WordPress-gutenberg – Block validation: Expected text
- Does `viewScript` in `block.json` actually enqueue a js file?
- 404 in gutenberg autosave of a Custom Post Type with custom rest_namespace
- Notices in the Block Editor with multiple lines
- Replication of core column block produces different markup
- Disable title block on edit screen for a custom post type
- How to change the Default block in the block-editor away from the paragraph block?
- Create RangeControl in gutenberg Block
- Where are the layout defaults in Twenty Twenty Two coming from?
- How do a I add an attribute to element (when using block theme)?
- How to Disable auto id attributes in Heading tag?
- Gutenberg: how to hide server side render output in the editor but keep it in frontend?
- How to Get a List of Formats of a Block?
- Remove a plugin from the Gutenberg sidebar
- Gutenberg how to save to post meta?
- How to get current post id in Gutenberg Block save function?
- Gutenberg: dynamic block ToggleControl error in saving
- How to limit the selection of the first level block in Gutenberg editor
- disable gutemberg welcome message
- props.setAttributes results in “Maximum update depth exceeded.”
- How can I programmatically select a Gutenberg block?
- Clipboard processing in Gutenburg
- Gutenberg: Dynamic rendering of RichText
- Block Controls not showing
- Gutenberg and FSE: How to exclude a block from full site editing
- Disable only one Gutenberg block programatically / coblock/maps not listed in blocks
- How to select block variation from BlockVariationPicker
- WordPress Full Site Editing: How can I access my posts listing page?
- Editable button with RichText for Gutenberg custom block
- How Do I Prevent An Image From Automatically Adjusting In Guttenberg Block Gallery?
- How to reload data stored for a sever side gutenberg block in the editor
- Setting font sizes in theme.json
- Using wp_set_script_translations without manually registering the script
- How to remove the old “Custom CSS” from customizer after the theme has been migrated to Gutenberg FSE
- Why am I getting the error: Cannot update a component (`Unknown`) while rendering a different component (`Edit`)?
- Update number of posts when attribute changed
- Block patterns: Any way to reset the pattern to whatever is in the code?
- Connect WordPress and react front-end
- Gutenberg editor auto remove wrapping tags like
- Setting fontSize within core/heading
- Unable to edit server side rendered block
- Gutenberg get list of all custom image sizes
- WordPress Dynamic Block with multiple checkboxes
- How to set a template part area?
- Embedded block editor in block editor
- useSelect in block Edit always returns default store value
- Count Gutenberg blocks on the front-end?
- How to call a react hook on edit of registerBlockType?
- Why does the paragraph block automatically add class?
- How can I block embeds and show an individual preview image per block?
- add arrow icon next to read more link on latest posts gutenberg block
- Create a trailing block with programatically generated Gutenberg columns
- Extend the “Convert to Blocks” feature to add additional functionality
- How to make attributes unique to Gutenberg blocks
- How to check title is being entered in Title Case?
- Gutenberg link of internal page not showing
- How do I trigger the sidebar reveal for my sidebar plugin in the Gutenberg editor?
- Gutenberg/WordPress – Limit number of categories
- Create Gutenburg Block to render inline SVG
- Gutenberg blocks not full width
- How to extend the URLPopover render settings for the paragraph Gutenberg block?
- Custom Image Gutenberg Block With Caption
- How to make a block similar to another block
- Gutenberg: How to enqueue scripts conditionally in render_callback by checking for an attribute?
- How can I reintroduce autocompletion of Gutenberg components in Visual Code?
- Blocks – any way to have editor honor width percentages on child blocks?
- Using `esc_attr( get_block_wrapper_attributes() )`, results in `class=””wp-block-foo””`
- How to solve react dom ‘removeChild’ on Node error while google translate extension is on and selecting any core block [closed]
- Change Featured image location from side to normal using react (gutenberg)
- How to list all registered blocks
- Get postId in a wordpress pattern file?
- Remove placeholder from core/image in InnerBlocks template
- Gutenberg block not displaying prop values
- ACF InnerBlocks breaks css grid, How can we add classes to allowedblocks (WordPress Gutenberg)
- How to disable block directory?
- Adding custom link text to a URLInputButton
- Rearrange order of block into a block category gutenberg
- Gutenberg Block Deprecation – Handling old viewScript and styles
- Resaving posts to update static blocks
- How to dynamically add style tags to Gutenberg editor in react