How to work with multilingual sites using the full site editor and block themes?

you either duplicate your website, or pay multi-money € ¥ ₪ ¥ $. The old alternative is to implement multiple languages yourself, e.g. either a complete duplicate of the website (terrible maintenance) or a lot of tweaking and customizations (duplicate pages, post types, custom templates per page, where needed, and so forth). WordPress developers made … Read more

Gutenberg Editor: dynamically edit slug field based on ACF field

I’ve found the way to edit the slug’s field. Just simply use: wp.data.dispatch(‘core/editor’).editPost({slug: ‘my-slug-value-here’}); With an event listener like this, I can dynamically change the slug field based on a custom field: jQuery(document).ready(() => { const acfField = ‘field_61f8bacf53dc5’; const inputShortTitle = document.getElementById(‘acf-‘ + acfField); const slugify = (str) => { return str.toLowerCase().replace(/ /g, ‘-‘) … Read more

Gutenburg: Remove border of selected block

It appears that the border is set by the following style definition on the block container (it is in block-editor/style.css): .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after { position: absolute; z-index: 1; pointer-events: none; content: “”; top: 1px; bottom: 1px; left: 1px; right: 1px; box-shadow: 0 0 0 var(–wp-admin-border-width-focus) var(–wp-admin-theme-color); border-radius: 1px; outline: 2px solid transparent; } Changing setting box-shadow … Read more

Gutenberg InnerBlocks with ACF Blocks – How to enable multiple buttons?

if you have a look at this site: https://developer.wordpress.org/block-editor/reference-guides/core-blocks/#buttons You can see that “Core/Buttons” (plural) only supports “full/wide” on “align”. You can however use “align” => “center” on “core/button”. I don’t know how you can add multiple buttons inside “core/buttons”, but you can however add multiple “core/button” inside your template: [ ‘core/button’, [ ‘align’ => … Read more