Adding block class to widgets

April 22, 2022 | Code Snippets,WordPress

When registering a sidebar, you can set the “before_widget” value to include some classes that WordPress will define. With Gutenberg, you can now use blocks in your sidebars – yay! However, that “before_widget” class by default does not include anything about the block that is used so it can be a challenge to custom style […]

Read full post

Use a reusable block in your theme

May 13, 2021 | WordPress

I ran into a situation where I created a reuseable block for many of the content pages of an e-commerce site. We wanted to use this same block at the bottom of all WooCommerce product pages as well. I could have written custom HTML/CSS for this small banner block but I always love making things […]

Read full post