How Do I Remove Parent Slug From Child Page URL in WordPress?

If you try to access a page on your site that has a parent slug, but the child slug is present, you’ll get an error message. To remove the parent slug from a child page URL, follow these steps:

1. Open the child page in your web browser.

2. In the address bar, type the child slug.

3. Press Enter.

4. In the address bar, type the parent slug.

5.

6. The parent slug should now be present, replacing the child slug.

7. Click the website address in the address bar to open the site.