Tag: gutenberg
-
Limiting Featured Image Dimensions in WordPress
As a follow up to my last post about limiting file sizes during uploads, I had to come back to the problem with limiting image sizes for featured images. Not bytes this time, but pixel dimensions. Still being a bit of a block editor newb, this was an interesting challenge for me, and I was…
-
Quick Tip: Disable WordPress Block Editor Fullscreen Mode
I don’t know why, but any time I edit posts on this site, the block editor always goes into fullscreen mode. Even if I disable it, the next time I edit a post or refresh, it goes right back. My preferences aren’t being saved. Oh well, we can fix that with some PHP! Many thanks…
-
Half-Baked Plugins: Embeds for Twitch and Gutenberg
In my forever attempt to learn and understand Gutenberg, React, and ES6 (which I am failing at horribly) I sometimes build WordPress plugins just for the learning experience. I don’t have any full intent on releasing these to the WordPress.org Plugin Repository because I honestly don’t feel like dealing with end users and support. I’m…
-
Gutenberg, Code, and Highlighting
One of the great things about Gutenberg is the ability to compartmentalize different types of content within blocks. One of the blocks that I’ve been using a lot of recently is the code block. This block by default will render something like this: While this is acceptable, it’s not very pretty. I used to use…
-
CSS & JS Concatenation in WordPress
At WordPress.com VIP one of the features we have on our platform is automated concatenation of Javascript and CSS files when registered through the core WordPress wp_enqueue__*() functions. We do this using the nginx-http-concat plugin: This plugin was written to work with nginx, but the server running derrick.blog is Apache. I’ve worked around this and…