Where can I find the Gutenberg block icons?

Is there any documentation showing the names of the Gutenberg block icons within the WordPress docs? To give you some context, I’m using ACF blocks for Gutenberg, and need to find a reference for ‘icon’. add_action(‘acf/init’, ‘my_acf_init’); function my_acf_init() { // check function exists if( function_exists(‘acf_register_block’) ) { // register a testimonial block acf_register_block(array( ‘name’ … Read more

Load CSS/Javascript in frontend conditionally if block is used

Assuming I have no infinite scroll or anything else going on in my theme: Is there a way to enqueue my custom Gutenberg block styles and scripts so they are only (lazy) loaded in the front-end when the block is really used? Something like is_active_widget, just for blocks? If I enqueue them inside a enqueue_block_assets … Read more

How would one modify the filtering Gutenberg applies to pasted content?

Note: I’m adding information I discover that seems to be leading to a resolution in the note. The Problem: When pasting content from a source external to Gutenberg into Gutenberg some HTML/CSS formatting is lost.[1] While Gutenberg retains most HTML (semantic) elements it drops CSS (styling/non-semantic) elements. This means that properties such as font size, … Read more

Enable Gutenberg on custom post type

I have this custom post type: function create_posttype() { register_post_type( ‘companies’, array( ‘labels’ => array( ‘name’ => __( ‘شرکتهای عضو’ ), ‘singular_name’ => __( ‘شرکت’ ) ), ‘supports’ => array(‘title’, ‘editor’, ‘custom-fields’, ‘excerpt’, ‘thumbnail’), ‘public’ => true, ‘has_archive’ => true, ‘rewrite’ => array(‘slug’ => ‘companies’), ) ); } add_action( ‘init’, ‘create_posttype’ ); Which shows classic … Read more