How to apply block transforms for a block with innerBlocks?
How to apply block transforms for a block with innerBlocks?
How to apply block transforms for a block with innerBlocks?
Remove WP 6.4 Lightbox “Expand on Click” functionality
Gutenberg doesn’t give an option to remove specific heading levels from the editor interface. But, I think you can workaround using a bit of custom code (both PHP and some JavaScript). If you’re interested, try this. Add this custom snippet to your theme’s function.php file. function remove_h1_from_editor() { wp_enqueue_script( ‘remove-h1’, get_template_directory_uri() . ‘/js/remove-h1.js’, array(‘wp-blocks’, ‘wp-dom-ready’, … Read more
Can’t get hexcode as color settings on save.js file, although I can on edit.js
Given your detailed description, it seems you’ve taken several steps to address the issue of sorting your archive pages in WordPress. The fact that changing the “order”:”desc” to “asc” in the archives.html file of your theme didn’t yield the desired result suggests a deeper issue. Try this in your functions.php file: function wpb_modify_category_query( $query ) … Read more
Is there any documentation on JS trigger for the Gutenberg “Navigation” block?
Core/Image access caption in render_template and in wp.hooks
The best way to achieve what i was wanting to do was to use the core blocks for latest post. Then style as I needed to. Here is what my code looks like. import { registerBlockType } from “@wordpress/blocks”; import { __ } from “@wordpress/i18n”; import { useBlockProps, InnerBlocks, } from “@wordpress/block-editor”; registerBlockType(‘sfs-test-header-para-block/sfs-test-header-para-container-block’, { title: … Read more
As far as I know the only way to get your block’s settings to show up in the Global Styles (so their defaults can be set) is by using the Supports API. It’s automatic if your block’s settings are implemented via Supports. Here it is from the docs: The global styles UI in the site … Read more
Passing context to core/navigation-link