Learn in this tutorial how to enable more Genesis sidebar options inside the WordPress block editor in Easy Digital Downloads.
The Genesis 3.1 release introduced a new Genesis Framework specific sidebar to the block editor.
In it you can control:
- Hide/show breadcrumbs.
- Hide/show titles.
- Hide/show featured images.
- Page layout.
- Hide/show footer widgets.
- Add custom CSS classes.
By default, these options are available for pages or entries.
But in this tutorial you are going to see how to enable them for Easy Digital Downloads.
Let’s get started.
Snippet to enable extra options in the Genesis sidebar inside the block editor for Easy Digital Downloads
Add the following code snippet to your functionality plugin:
If you notice, the snippet that supports the new Genesis sidebar is the third one.
But, in order for it to work, you need to enable 2 things first:
Those are the two snippets that go just above.
When you add the full snippet you will get the Genesis sidebar to show up in the editor whenever you enter a new “Download” entry.
Do you want all the new Genesis options to appear in your block editor sidebar in Easy Digital Downloads?
Now you know how to enable them through code.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂