Live Stream Recap: Adding e2e tests to custom a Gutenberg block
On today's live stream, we worked through adding some e2e tests to a block we created in a previous stream. This was a lot of fun and I learned a…
On today's live stream, we worked through adding some e2e tests to a block we created in a previous stream. This was a lot of fun and I learned a…
Now that the PluginDocumentSettingPanel
is in WordPress core, we can add our own panels to the Document Settings panel using the registerPlugin
function.
const { registerPlugin } = wp.plugins;
const { PluginDocumentSettingPanel } = wp.editPost;
const MyCustomSideBarPanel = () => (
<PluginDocumentSettingPanel
name="my-custom-panel"
title="My Custom Panel"
>
Hello, World!
</PluginDocumentSettingPanel>
);
registerPlugin( 'my-custom-panel', {render: MyCustomSideBarPanel } );
The above code will insert a new Panel in the Document Sidebar with the title of “My Custom Panel ” and will display “Hello, World!” as it’s content. If we want this panel to appear on every post type registered, then we’re done but what if we want to restrict this panel to just a single post type?
(more…)3 Jewels in my Crown was a very fun WordPress theme to work on. It features many different custom image sizes based on a Featured Image and does all of…
This was a very fun project to work on. In response to many video parodies and tributes found online, Les Stroud tasked me with creating this portal for people to…
This is the official website for Les Stroud's newest television series: Les Stroud Beyond Survival. The artwork was created by Luke Despatie & The Design Firm and I provided all…