in

How to Remove Parent Slug from Child Page URL in WordPress?

How to Remove Parent Slug from Child Page URL in WordPress?

Permalinks are the first thing that is kept in mind while ranking a website. WordPress comes with posts and pages as the content type. Whenever you add a new page under the tag of the parent page, the WordPress will consider it as a child page. This child page could be easily identified by looking at the permalink.

However, some of the users might want to remove this parent slug from the URL as it could make it longer. Though having the parent slug in the permalink is a good thing for SEO as it displays a hierarchical structure, still some of the people believe that it is not bad for SEO. If you are also among those people who think the same, then here we present you with the complete method of removing the parent slug from child page URL.

Method 1 – via Custom Permalinks Plugin

Step 1

To perform this task, the first thing you need to do is install and activate the Custom Permalinks plugin. All you have to do is log in to your WordPress admin dashboard, and head over to the Plugins> Add New page. Now you have to search for the plugin and hit the Install Now button. Once the installation is complete, make sure that you click on the Activate Plugin link to start using it.

Step 2

In the next step, you need to head back to your WordPress admin area and visit the Pages> All Pages page. Here you need to look out for the child page of which you want to remove the parent slug. Once you have found the desired page, you need to click on the Edit button which will open the page editor screen.

Step 3

In the page editor screen, you can change the URL of the page and remove the parent slug. All you have to do is click on the current link of the page and edit the URL as per your needs. Make sure to click on the Save button to keep the changes. Upon making the changes, you can click on the View Page button to review your page and the URL.

Method 2 – via Permalinks Manager

Step 1

There is another plugin that might help you in this process. In this method, you need to install and activate the Permalinks Manager plugin to your site. You can follow the process mentioned above to install the plugin. Once the plugin is successfully activated, you have to navigate to your WordPress admin dashboard and open the Tools> Permalink Manager page which will open the plugin’s settings.

Step 2

In the plugin’s settings page, you need to enable the Add Redirects for Old URLs and Automatically Remove Duplicates option. Upon enabling, you need to look for the Disable Slug Appendix and select the Pages option.

Step 3

Here you will notice that the Pages field will be empty as there is no slug mentioned in it. As you want to use only the child slug, you should use the %postname_flat% in the permalink structure and click on the Save button to keep the changes.

Step 4

Now that you have created the new permalink structure, you need to reflect the changes to the existing pages of your site. Head over to the WordPress admin dashboard and visit the Permalinks Manager settings. Here you can see four different configuration tabs, but for this setting, you need to open the Tools tab.

Step 5

In the Tools tab, you need to look out for the Regenerate/Rest section and change the mode to Custom URLs and the Select Content Type to Post Type. Afterwards, you need to enable the Pages option and select Published in the Select Post Statuses section. Once you are done with all the configurations, you need to click on the Regenerate button, and the plugin will remove the parent slug from your child page URL.

Permalink Manager Tools

Should You Remove the Parent Slug?

When it comes to the permalink of the pages, the WordPress follows a hierarchical structure. This permalink structure is not only good for the SEO of your website but will also help your users in finding the parent of the current page. Permalinks play a significant role in the rankings of the site. By default, WordPress gives five different options to choose for creating a permalink of the post or a page. The limitation of WordPress is that it does not allow its users to edit the link once it has been posted.

As mentioned above, some of the users might want to change the URL for personal users, but they are unaware of the fact that it may affect the search engine rankings of the website.

In addition to that, removing the parent slug from the URL might also result in the breakdown of the URL, and it may also clash with the default permalink structure. If you believe that you might not have any child page on your website, then it is best that you should not create the page in the first place. Instead, you can create a new page on your site and add a navigation menu to it. In that menu, you can add different pages which will signify its child pages. In that way, you are indirectly creating the child page. This child page will not include the parent name in the URL and eliminate the need for removing it manually.

By creating the navigation menu, you are not affecting the SEO rankings of your site and are also helping your users in finding their way on the site. However, it still depends on you that whether you want to create a child page or go with the navigation menu.

Endnote

Both of the methods mentioned above will remove the parent slug from the child page URL. It is all up to you that which method you want to use. The Permalink Manager plugin can do more than just removing parent slug whereas the Custom Permalinks plugin will only help you in customizing the URL of any post or page.

Leave a Reply

Your email address will not be published. Required fields are marked *

How to Create a Mobile-Ready Responsive WordPress Menu?

How to Create a Mobile-Ready Responsive WordPress Menu?

How to Automatically Post to Facebook from WordPress?

How to Automatically Post to Facebook from WordPress?