How to Remove Parent Slug From Child Page URL in WordPress

How to Remove Parent Slug From Child Page URL in WordPress
Marlana Peralta

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.

How to Remove Parent Slug From Child Page URL in WordPress
Retha Poston

WordPress has two main types of content called posts and pages. Pages are hierarchical, meaning that they can have pages for children. By default, the URL of a child page in WordPress will have the slug of its parent page in the URL like: http:/ is a better way to organize content when you use a hierarchical page structure on your site. It is considered best practice for WordPress SEO and it is also meaningful for your users. The removal of the parent page slug may break the URL, but it also makes it less SEO friendly in some experts ‘ opinion. Sometimes it can create conflicts with the permanent WordPress structure.

How to Edit the Child Page URL to Remove the Parent Slug in WordPress
Malinda Lumpkin

When WordPress is first installed, it comes with all of the default options enabled. Most of these are in place for good reason, but they can all be modified. It is important to understand which default setting should be changed and which should not. In this case, I would recommend not creating a child page. Instead, place the page under the parent page in a navigation menu. This way you will not have a parent slug and can still show that the Dogs page is a subpage of the Pets one.

Be the first to comment

Leave a Reply

Your email address will not be published.