Genesis Title Toggle is an incredibly simple Genesis companion plugin that allows you to disable the title for pages. However, there are many times when you want to expand this functionality to posts or other custom post types. So, let’s jump look at how and why you may want to do this.
Genesis doesn’t have a built in page builder, but WordPress for all intents and purposes does. This is fine for sites that don’t make use of custom post types but when you need support for it you can easily add expansion.
For instance, if you are using a portfolio custom post type you might not want to show the default title. You might instead opt to use Gutenberg’s cover image to act as the page title.
How To Enable This Functionality?
The good news is the plugin has the ability for it to be enabled via a filter. I am going to show you how to do it for a single custom post type and then I will show you how to do it with an array.
This below code can be added to enable it solely for the “post” post type. You could also change “post” for a different public-facing post type.
Now, if you’re looking to enable this functionality for multiple custom post types you can pass the results through an array.
There you have it you can now enable the Genesis Title Toggle option for all post types or just the “post” post type. This can be applied to several post types and there are many other cool implementations of this snippet and plugin that you can make!
Let me know if you have any questions below and I can help address them.