In WordPress, do you want to remove the parent page slug from the child page url? WordPress adds the slug of the parent page as a prefix to child page URLs by default, which is good for SEO. Some people, on the other hand, may not want the parent page slug in the URL. We’ll show you how to remove the parent page slug from a child page’s URL in WordPress in this article.
In WordPress, what is a Parent Page Slug?
Posts and pages are the two main content types in WordPress. Pages can have child pages because they are hierarchical. A child page’s URL in WordPress will by default include the slug of its parent page, such as:
If your website has a hierarchical page structure, this is a better way to organize content. It is considered the best practice for WordPress SEO, and it is also beneficial to your users.
Removing the parent page slug may break the URL, but it also makes it less SEO friendly, according to some experts. It can sometimes cause issues with the WordPress permalink structure.
In our experience, the best approach is to not create a child page at all if you don’t want the parent page slug in your child page URL. Instead, create a page and use navigation menus to indicate that it belongs under this page.
We recognize, however, that some users may prefer to use child-pages for their own reasons.
With that in mind, let’s look at how to remove the parent page slug from a child page’s URL in WordPress.
In WordPress, removing the parent page’s slug from the child page’s URL
You must edit the child page you want to change after activation. The option to change the child page URL can be found under the page title.
The default URL for your page will be displayed in the placeholder area. You must click on it and then type in the custom URL for your child page.
Remember to save your page to keep track of your URL changes.
After saving your changes, you can view your child page URL without the parent page slug by clicking the view page button.
We hope you found this article useful in learning how to remove the parent page slug from a child page’s URL in WordPress. You might also be interested in our list of the best WordPress drag and drop page builder plugins.