Latest posts block: style “read more” link as button

Published: Leave a comment Last update:

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

WordPress: Enqueue block style in different block

Published: Leave a comment Last update:

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