How To Remove Parent Slug From Child Page URL In WordPress

Rock WPHow toHow To Remove Parent Slug From Child Page URL In WordPress

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

Install and Activate the "Custom Permalinks" Plugin

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.

Edit the Child Page Slug

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.

Edit the Child Page Slug

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.

Conclusion

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.

What is a parent page 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.

Can I remove the parent slug from all child pages at once?

No, you need to edit each child page individually to remove the parent slug from the permalink.

Will removing the parent slug affect my website’s SEO?

No, removing the parent slug from the child page URL will not affect your website’s SEO negatively.

Can I change the slug of the parent page?

Yes, you can change the slug of the parent page, but it will also change the URL of all child pages linked to it.

Is it possible to add the parent slug back to the child page URL?

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.

Help improving: How To Remove Parent Slug From Child Page URL In WordPress

Do you have questions, comments or feedback about this topic? Share your voice below!

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Looking for Cheaper & Better Hosting?

Save big and boost your site with affordable, superior WordPress hosting!

Compare Hosting Deals

Related Stories