Divi Tutorial: How to remove Projects

divi header

If you’re not going to use the type of content Divi adds called Projects, why take up precious space in your WordPress administration?

It makes no sense to have it there on your desktop taking up space and distracting your editors.

To hide it, just add the following code to your customizations plugin or to the functions.php file of your child theme:

//Hide Divi projects
add_filter( 'et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1 );
function mytheme_et_project_posttype_args( $args ) {
	return array_merge( $args, array(
		'public'              => false,
		'exclude_from_search' => false,
		'publicly_queryable'  => false,
		'show_in_nav_menus'   => false,
		'show_ui'             => false
	));
}Code language: PHP (php)

And that’s it, the code hides the projects everywhere, even from searches. You will no longer see Divi projects in your admin bar menu.

How useful was this post?

Click on a smiley to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Skip to content