---
title: Slug Change
description: "First, install Child Theme from the Theme bundle. Open functions.php file with WordPress Editor or AceIDE and Change event/team URL slug file on turitor-child\\functions.php folder and write the below code ``` //For Event slug add_filter( 'register_post_type_args', 'turitor_event_slug_register_post_type_args', 10, 2 );…"
url: "https://themewinter.com/docs/themes/theme-docs/turitor/slug-change-5/"
updated: "2023-01-30"
category: Turitor
---

# Slug Change

First, install Child Theme from the Theme bundle. Open functions.php file with WordPress Editor or AceIDE and Change event/team URL slug file on turitor-child\functions.php folder and write the below code

```
//For Event slug
          add_filter( 'register_post_type_args', 'turitor_event_slug_register_post_type_args', 10, 2 );
               function turitor_event_slug_register_post_type_args( $args, $post_type ) {
                                        if ( 'turitor-events' === $post_type ) {
                            $args['rewrite']['slug'] = 'event'; //rename solutions
                        }
                        return $args;
                    }

//For Team slug

       add_filter( 'register_post_type_args', 'turitor_teams_slug_register_post_type_args', 10, 2 );
               function turitor_teams_slug_register_post_type_args( $args, $post_type ) {
                       if ( 'ts-teams' === $post_type ) {
                            $args['rewrite']['slug'] = 'team'; //rename my-service
                        }

                        return $args;
                    }
```
