• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Enable Genesis sidebar options in the block editor for EDD

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.

genesis-sidebar-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.

genesis-sidebar-block-editor

But in this tutorial you are going to see how to enable them for Easy Digital Downloads.

genesis-sidebar-edd-block-editor

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:

To see this and another 847 code snippets of this website, login or subscribe here.

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:

  • Enable the block editor in Easy Digital Downloads.
  • Enable custom fields in Easy Digital Downloads.

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.

genesis-sidebar-edd-block-editor

Conclusions

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. 🙂

Block Editor CPT Easy Digital Downloads Genesis Framework PHP

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?