Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Remove Parent Slug From Child Page URL in WordPress

Do you want to remove the parent page slug from a child page URL in WordPress?

By default, WordPress adds the parent page’s slug as a prefix to child page URLs, and this is good for SEO. However, some people may not want the parent page slug in the URL.

In this article, we will show you how to remove the parent page slug from a child page URL in WordPress.

Remove parent page slug from child page URL

What Is a Parent Page Slug in WordPress?

Your WordPress website comes with two main content types called posts and pages.

Pages are hierarchical which means they can have child pages. By default, the URL of a child page in WordPress will have its parent page’s slug in the URL. Here’s an example:

This is the best way to organize content if you use a hierarchical page structure on your website. It is considered best practice for WordPress SEO and will make sense to your users.

Removing the parent page slug is usually not a good idea. It can potentially break the URL, and some experts believe it is less SEO-friendly. Sometimes it may cause conflicts with the WordPress permalink structure.

In our experience, if you don’t want a parent page slug in your child page URL, then the best approach is to not create a child page at all. Instead, you can simply create a page and use navigation menus to show that it belongs under this page.

Adding child items to a menu

However, we understand that some users may still want to use child pages and not include the parent page slug in the URL.

That being said, let’s take a look at how to easily remove the parent page slug from a child page URL in WordPress.

Removing Parent Page Slug From Child Page URL in WordPress

The first thing you need to do is install and activate the Custom Permalinks plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you need to edit the child page you want to change. Under the page title, you will see the option to change the child page URL.

Change child page URL

The placeholder area will show your page’s current default URL. You need to click on it and enter the custom URL you want to use for your child page.

Custom page URL

Don’t forget to save your page to store your URL changes.

After saving your changes, you can click on the view page button to view your child page URL without the parent page slug.

We hope this article helped you learn how to remove the parent page slug from a child page URL in WordPress. You may also want to learn how to register a domain name, or see our list of the best drag and drop page builder plugins for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

6 CommentsLeave a Reply

  1. I have changed my page url from education to education-information. But when I click on that page.. it is showing the old page with a message page not found 404 error.. and when click on the page for 2nd time it is going to the concerned page. what should I do?

    • You would want to ensure you clear any caching on your site and ensure your redirect is set up properly


  2. What about 301 redirects? I recommend setting up these redirects if you update URLs (Google might have indexed the old version of the URL or users may have saved those links).

  3. Awesome post.
    Is there any other way to change the url without installing the plugin?
    Thanks you!

  4. Awesome! I was looking for this technique for ages. I would really love if you could share any approach other than using a plugin.

    But, still i love this technique. Thanks

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.