WordPress Made Easy

How to Remove Parent Slug From Child Page URL in WordPress

In WordPress, do you want to delete the parent page slug from the child page url? WordPress prefixes child page URLs with the slug of the parent page by default, which is beneficial for SEO. The parent page slug may not be desired by everyone, though. This article will demonstrate how to change the URL of a child page in WordPress to remove the parent page’s slug.

What does a WordPress Parent Page Slug mean?

Posts and pages are the two primary content kinds included with WordPress. Pages can have children because they are hierarchical. In WordPress, a child page’s URL will by default include the slug of its parent page, such as:

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

If the page structure on your website is hierarchical, this is a better approach to arranging the material. It makes sense for your users and is regarded as the best practice for WordPress SEO.

The URL may become broken if the parent page slug is removed, however some SEO professionals believe it also degrades its SEO friendliness. On sometimes, it might interfere with the WordPress permalink system.

In our opinion, the best course of action is to avoid creating a child page altogether if you don’t want the parent page slug in your child page URL. Instead, you can just make a page and indicate its placement within this page using the navigation menus.

adding menu items for children

We are aware that some users may still choose to use child pages for personal reasons, though.

In light of this, let’s examine an easy method for removing the parent page slug from a child page’s 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.

The child page you want to update must be edited after activation. You can modify the child page URL by clicking the link under the page title.

the URL of the child page

The default URL for your page will be displayed in the placeholder box. To utilize a custom URL for your child page, you must click on it and input it.

unique page URL

To save your URL changes, don’t forget to save your page.

You may view your child page’s URL without the parent page slug by clicking the view page button once you’ve saved your modifications.

We trust that this post has shown you how to change the URL of a child page in WordPress to eliminate the parent page’s slug.

Comments are closed.