WordPress is a popular content management system that offers a great deal of flexibility and customization for its users. One of the features that users can take advantage of is the creation of parent and child pages. However, by default, when you create a child page in WordPress, the URL includes the parent slug, which can make it longer and harder to read. In this article, we will go through the steps on how to remove the parent slug from the child page URL in WordPress.
Install and Activate the “Custom Permalinks” Plugin
The first step is to install and activate the “Custom Permalinks” plugin. This plugin allows you to customize the permalinks of your pages and posts.
To do this, go to the Plugins section in your WordPress dashboard, click on “Add New,” and search for “Custom Permalinks” Once you find the plugin, click on “Install Now” and then “Activate“
Edit the Child Page Slug
After installing and activating the “Custom Permalinks” plugin, go to the child page that you want to edit. Under the title of the page, you will see the permalink. Click on the “Edit” button next to it.
In the box that appears, remove the parent slug from the permalink. For example, if the parent page has the slug “blog” and the child page has the slug “my-page” the current permalink will be “blog/my-page” Remove “blog” from the permalink, so it becomes “my-page” only.
Update the Permalinks
After removing the parent slug from the child page slug, click on “Save” to update the permalink. The page will reload, and you will see the updated permalink without the parent slug.
Removing the parent slug from the child page URL in WordPress is a straightforward process that can help make your URLs shorter and easier to read. By using the “Custom Permalinks” plugin and editing the child page slug, you can update the permalink and remove the parent slug. This simple step can help improve the user experience on your website and make it more professional. If you are looking for changing author URL slug in WordPress, click this.
Remove Parent Slug From Child Page URL In WordPress FAQ
Here are the most common questions about remove parent slug from child page URL in WordPress.
A parent page in WordPress is a page that has other pages (child pages) linked to it. It is used to create a hierarchical structure for your website.
No, you need to edit each child page individually to remove the parent slug from the permalink.
No, removing the parent slug from the child page URL will not affect your website’s SEO negatively.
Yes, you can change the slug of the parent page, but it will also change the URL of all child pages linked to it.
Yes, it is possible to add the parent slug back to the child page URL by editing the child page slug and including the parent slug before it. However, this will make the URL longer and less readable.