How to Remove Parent Slug From Child Page URL in WordPress

Share on facebook
Facebook
Share on google
Google+
Share on twitter
Twitter
Share on linkedin
LinkedIn

Do you want to remove the parent page slug from child page url in WordPress? By default, WordPress adds parent page’s slug as a prefix to child page URLs which is good for SEO. However, some people may not want parent page slug in the URL. In this article, we will show you how to remove parent page slug from child page URL in WordPress.

What is a Parent Page Slug in WordPress?

WordPress 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 like:

http://example.com/parent-page/child-page/

This is a better way to organize content if you are using hierarchical page structure on your website. It is considered best practice for WordPress SEO, and it makes sense for your users as well.

Removing the parent page slug can potentially break the URL, but in some expert opinion, it also makes it less SEO friendly. Sometimes it may cause conflicts with the WordPress permalink structure.

In our experience, if you don’t want 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 for their own reasons.

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

Removing Parent Page Slug from Child Page URL in WordPress

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 parent page slug.

We hope this article helped you learn how to remove parent page slug from child page URL in WordPress. You may also want to 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.

The post How to Remove Parent Slug From Child Page URL in WordPress appeared first on WPBeginner.

Original Article

More to explorer

Developing Dyno: Below the Surface

Ever wonder what’s going on behind the scenes of a successful business? Each developing business has a different journey. Let’s dig a little deeper as we explore below the surface of Dyno Creative and discover what makes them so dang special!

In a creative funk? Unexpected Inspiration

In a creative funk? Step out of your comfort zone and say hello to the power of unexpected inspiration as you rediscover the world around you. Sometimes there’s just nothing better than spending some quality time with quality people, to center our thoughts and refocus our priorities.

How to Be Seen in a Crowded Marketplace

Don’t let the challenges of standing out in a competitive market get you down. Dyno Creative simplifies the process of brand recognition into 5 easy steps, allowing you to focus on building stronger customer relations while simplifying the buying process.

Receive the latest news

Subscribe To Our Weekly Newsletter

Get notified about new articles.