Currently, the only way to add links to content in the block editor is using text links, buttons or links on images. But what if you need more? In my case, the request was to be able to link whole columns, cover blocks and group blocks.
Continue reading Add support for linkable column/cover/group blocksBlog
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 pagesIf you limit the width of a search field, and use a long placeholder text, this text will be cropped before the end of the input field. Why? Because Safari reserves some space for an icon that will be displayed to clear the input field if you’ve entered a value.
Continue reading Search input in Safari: Cropped placeholderYou may know the content position setting in cover blocks to positioning the content inside the cover, which is horizontally and vertically centered by default. Since the group block can be used similar, and we used it inside a custom slider block, we wanted to have the identical settings for group blocks as well.
Continue reading Block editor: Content position for group blockBy default, there is no API for adding a new button to the main toolbar of the block editor. So if you want to add a button there, you have to do it manually. This means, in React, you need to subscribe for changes and inject your desired content where you want.
Continue reading Add content in the Block Editor’s top toolbarWordPress 6.0 comes with new layout options for certain blocks, e.g. the group block. These options allow to limit the width of its content. Since it’s available by default without explicit opt-in, one might want to disable it. However, there is no builtin option so far to do that.
Continue reading WordPress 6.0: Disable layout optionsSince 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 blockThe 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)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 SwitcherThere are cases where you want to link a whole column block to another target. However, obviously there is no such option for an edge case directly built into the column block in the block editor. Fortunately, JavaScript is quite powerful, so you can achieve this functionality with a little bit of code.
Continue reading Block Editor: Add a link to a whole column block