Using a block theme, I was curious how to add custom CSS styling to the block editor without explicit enqueuing a separate CSS file. I wanted to do it the same way as the block editor.Continue reading Block Theme: Add custom styling in the block editor
I’m pleased to announce the availability of Form Block Pro 1.1 and Form Block 1.3. Both ship new features to make your forms even more capable.Continue reading Form Block Pro 1.1 and Form Block 1.3 released
Yes, it’s me again with the same topic again. After I already mentioned to fix your SCSS color contrast function and how to use a WCAG 2 compliant SCSS color contrast function with
scssphp, a colleague noticed that in some cases, this function was wrong.
If you want to properly take the admin bar into account in your theme, you always need to adjust it if you have a fixed/absolute positioned header. With CSS custom properties, it becomes much less of a pain.Continue reading WordPress admin bar height and CSS custom properties
In my last post, I showed how to load a specific block style in a different block and promised that I will show you how exactly I used it for the latest posts block. Since the “read more” link on this block is, by default, just a plain text link, I want to modify it to be styled as a regular button without needing to add custom CSS to style it this way.Continue reading Latest posts block: style “read more” link as button
In WordPress 5.5, conditional loading of core block styles was introduced to only load the style of a block if it’s actually used on the current page. This works fine, but what if you change a core block to make use of another block, which is not necessarily available on the page yet? This would result in an unstyled block.Continue reading WordPress: Enqueue block style in different block
Since long time, WordPress has the possibility to define the amount of content displayed on the posts list archive page by adding a “more” tag to the content. While using the content until this tag is easily possible using
get_the_content, what about using the rest?
Since WordPress 5.9 you can load assets for a block only when the block is used. For block styles/variations, you need to be creative, though. Especially if it’s not your own block you’re creating a variant of.Continue reading Load block variation assets only when used
If you’re using Polylang in a multi-domain setup as I do in a project, there may be some problems regarding viewing post previews. To solve this, I tried various potential solutions and take you on the journey on how I to finally got rid of the problem – at least for pages.Continue reading Polylang: Allow previews in multi-domain setup
Starting with version 1.2.0 of Form Block, it’s now even easier to create forms in the WordPress block editor – with the new form creation wizard.Continue reading Even easier form creation with Form Block 1.2