srcset attribute in Gutenberg gallery blocks

Unfortunately, setting the sizes based on the viewpoint size in the Gallery Block isn’t possible as of this writing (quite frustrating, imho) :/ There’s a couple outstanding tickets about this, notably: https://github.com/WordPress/gutenberg/issues/9620 and https://github.com/WordPress/gutenberg/issues/13842

Gutenberg remove Most Used group

Add CSS to wp-admin: functions.php: function admin_scripts() { wp_enqueue_style(‘admin-edits’, get_stylesheet_directory_uri() . ‘/assets/css/admin.css’); } add_action(‘admin_enqueue_scripts’, ‘admin_scripts’); admin.css: #block-editor-inserter__search-1:placeholder-shown + .editor-inserter__results .components-panel__body:first-of-type { display: none; }

Gutenberg default initial values for FocalPointPicker

Ok, I found the solution by myself. Inside withSelect it is needed to assign default value if getEditedPostAttribute is empty. // Helper function to check if received meta object is empty or not function isEmpty(obj) { for(var key in obj) { if(obj.hasOwnProperty(key)) return false; } return true; } PhotoControl = withSelect( (select) => { let … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)