Block editor: Add settings to document sidebar

Published: Leave a comment

If you want to add a new sidebar control to an existing block, there are filters for that. Or if it’s your own block, you can just use InspectorControls for that. But if you wand to add global settings, which reflect something for the whole post, you need to do it differently.

Since I couldn’t find a proper solution already described in a blog post or documentation, here’s my own one.

Continue reading Block editor: Add settings to document sidebar

Add WordPress pagination on custom options pages

Published: Leave a comment

Post types usually already have a nice list view (if set to public) in the backend to list its posts. Unfortunately, to customize it you would need some effort in using multiple filters to change the columns, the column heads, the sorting and adjust the query to your liking.

Today, I show another approach by just adding a custom page with a similar but custom pagination.

Continue reading Add WordPress pagination on custom options pages

Disable alignment settings for group block

Published: Leave a comment

Since WordPress 6.0, you can define how content inside a group block is aligned. Besides the default, which does nothing, you can also display the content inline in a row or stack it. Together with the new layout options you can then justify the content and set its orientation based on your desires.

If you don’t want to use that feature, you can disable it. It’s basically both a block variation of the group block.

Continue reading Disable alignment settings for group block

Disable welcome guide in Gutenberg (even in widgets)

Published: Leave a comment

The block editor, also known as Gutenberg editor, contains a welcome guide for new users to explain the main functionality of itself. Most people working on a daily base with the block editor know how to use it, which makes the welcome guide unnecessary for them. Since the welcome guide is displayed on every new website, even if the same multisite, and since quite some time even in widgets or the widget area in the Customizer, it’s annoying for quite a large amount of people.

Continue reading Disable welcome guide in Gutenberg (even in widgets)

Limit available sites in Multisite Language Switcher

Published: Leave a comment

By default, Multisite Language Switcher displays all configured sites in a multisite as potential translation. This is not useful in certain environments. For instance, here at Epiphyt, we have the main site in English and German as well as the site of Impressum Plus. This means, we have four sites in total, of which two are in English and two are in German.

Continue reading Limit available sites in Multisite Language Switcher