All Collections
Divi Documentation
Customizing Divi
How To Change Divi's Default Project Slug
How To Change Divi's Default Project Slug

With this guide, you can change Divi's Project post type slug (/project/) with your own custom one.

Karen avatar
Written by Karen
Updated over a week ago

To keep the changes intact, you will need to use a child theme. If you don't have one yet and don't know how to create it. please follow this guide first: How To Make A Child Theme

Once you created and installed your child theme, add the following code to the /functions.php  file in your child theme folder:

/* DON'T copy the first line (above) if your functions.php already has it.
* ------------------------------------------------------------------- */

function et_projects_custom_slug( $slug ) {
    $slug = array( 'slug' => 'custom-slug' );

    return $slug;
add_filter( 'et_project_posttype_rewrite_args', 'et_projects_custom_slug', 10, 2 );

Replace the custom-slug string in the code above with anything that you want (ex: book ).

Lastly, you might need to refresh your permalinks for this change to take effect. To do this, open your WordPress Dashboard and go to Settings > Permalinks then simply click on the Save button:

Did this answer your question?