How to change Divi Project slug to something else

Jun 27, 2018 | Divi Tips | 1 comment

Are you using the Divi Projects for something other than projects? You may want to change the permalink (or URL) to say something other than “project”.

You’ll need to use a child theme and paste the following into the functions.php file. You can find this in Appearance > Editor.

Change the YOUR-NEW-NAME to whatever you like.

add_filter( 'et_project_posttype_rewrite_args', 'wpc_projects_slug', 10, 2 );
function wpc_projects_slug( $slug ) {
$slug = array( 'slug' => 'YOUR-NEW-NAME' );
return $slug;
}

1 Comment

  1. Hi,

    this code doesn’t work for 4.8.1.
    Any Updates?

Submit a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.