It could be that the block is processing CSS, and that CSS processing has already occured. You need to thus run the do block in the header, or that is the solution I’ve been told. I’ve not gotten it to work, for myself.
Related Posts:
- How to serialize a Gutenberg block from block attributes in PHP?
- Removing Default Gutenberg Blocks, But Keeping Reusable Block Functionality?
- is_admin returning false in backend in server side rendered block
- Gutenberg Blocks doesn’t render correctly when using do_blocks
- add_meta_boxes action with refresh on save
- Gutenberg custom block using only register_block_type() and HTML
- Include a Gutenberg Block in a PHP file
- Create custom blocks for bootstrap
- How to return output of the new wp gallery block for automatically Link images To Media file
- Register JS for block on frontend only
- Displaying admin notices inside the block editor from rest_after_insert_{$this->post_type} hook
- How to programmatically add Gallery Block to Existing Post Content
- Best way to add more options to Gutenberg “More Rich” text controls drop down
- Fetch post block/field data as JSON with WordPress API
- Gutenberg block – Save PHP function’s output as HTML?
- Where to find documentation for CPT block template? (PHP)
- Generate YouTube image thumbnail in a Gutenberg block – ACF + Timber
- Add class to group inner container
- Multiple requests external data api dynamic block gutenberg
- How to keep the capability of users and disable Gutenberg editor in WordPress?
- parsing nested blocks (in columns, etc) via PHP
- Passing the name of selected color from the custom component to `render_callback`
- InnerBlocks with allowedBlocks not working with acf_register_block
- Guttenburg and Classic Editor – How to use the custom guttenburg block in classic editor?
- How to render a block from php template
- Want to unrestrict plugin block
- WordPress – Get Posts with Category data
- Additional file upload in Gutenberg page options/featured image
- Add Block Before Entry Title Using PHP
- How to populate a Gutenberg select field SelectControl with option value from PHP array
- Gutenberg Blocks and get_option() for styling
- How to extend SelectControl with data from my theme
- Copying and pasting to WordPress “code editor” code via the front end and clipboard
- Gutenberg block don’t save rich text content
- Is there a PHP function that will return the block ID generated by WordPress?
- register_block_type is not working properly
- Categories does not show Block editor WordPress
- Block that renders html saved in a php file
- Show Gutenberg facebook embed with a custom theme
- Gutenberg – render_callback does not pass ToggleControl value on frontend
- Add default block css when the block has been added with php?
- Custom Post Type doesn’t have template content when creating programmatically in PHP but does when created in WP Admin
- How to add different menu items on different menus?
- How to enable REST API on custom post type without Gutenberg?
- Replace block content with an array
- Include a static block inside of a dynamic block
- WordPress Block Editor Gutenberg running code inside ! is_admin()
- Manipulating the allowed inner blocks of a core-gutenberg-block?
- Adding features to Gutenberg without theme.json
- Registering a custom block style
- Get column block count using PHP method render_block
- Disable Attachment Pages Completely
- Get meta_id along with meta_key and meta_value
- Enable/disable post revisions programmatically
- How can I add a specific, custom widget to my theme’s header.php?
- Change WordPress default registration error text [Error: This username is invalid because it uses illegal characters. Please enter a valid username.]
- How to make custom total price reactive in navigation
- PHP to Programatically delete a file
- Instantiate class to be available to all plugin functions
- Implement toggle switch for theme options in settings API
- ACF: how do I get the fields and its values of a specific group?
- Trying to place a custom field after the total section in the checkout page in woocommerce
- How WordPress reacts to a lack of memory of the server [closed]
- WordPress Multiple Navigation bars
- Adding a widget function into the php theme file
- PhantomJS with wordpress
- Call to undefined method – Download Monitor
- Undefined method class::construct() when creating a plugin
- Live to Local on MAMP, not working, outputting functions.php code
- Remove extract from function
- Undefined offset: 3 in custom function
- Shortcode to log user into current URL
- WordPress Staging and Testing of Plugins Best Practices
- Conditionally remove comments and post meta in functions.php
- Replacing WordPress Icons (menu,icons32, etc)?
- How to restrict shipping zone in a specific interval time
- Remove Author Links
- Integrate admin plugin into template. Very interesant (live search + autocomplete with wp rest api, in vanilla js)
- Flushing the slug base has no effect and does not change
- Multiple cron jobs vs daily cron job doing multiple things? Which one yields better performance and scalability?
- Assign meta_query value to php variable
- Change WooCommerce currency programmatically on AJAX request
- JQuery modal not loading video on popup, only displaying it after multiple reopenings
- Move blogs but with applied filters
- Use page-templates without creating theme
- Short code into PHP
- Allow user to select location and then set cookie for location in WordPress
- Sort on two variables
- Merge / Combine two php functions for Previous and Next Link with Thumbnail
- Trying to customize wordpress drop down categories
- How to get WordPress Adminmenu items?
- Parse error: syntax error, unexpected ‘echo’ (T_ECHO) in C:\xampp\htdocs\AttendanceSystem\resources\php\method.php on line 250 [closed]
- Adding php within a return statement [closed]
- Display post of specific category on page
- Add topbar to static html page
- Execute multiple PHP Snippets causes error?
- Social Sharing Buttons in Recent Articles List
- Add Woocommerce Customers link to custom admin menu
- Preventing script injections in HTML form
- How to access admin menu labels and links on front-end?