Do you want to remove parent page slug from child page url in WordPress? 

By default, WordPress adds the parent page slug as a prefix to the child page URLs, which is good for SEOHowever, some people may not want the parent page slug in the URL. 

In this article, we are therefore going to show you how to remove the parent page slug from the child page URL on WordPress.

But before, if you have never installed WordPress discover How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog 

Then back to why we are here.

remove the slug from the parent.png page

What is a parent page slug?

WordPress comes with two main types of content called posts and pages. Pages are ordered hierarchically, which means they can have child pages.

By default, the URL of a child page on WordPress will have the parent page slug in the URL like:

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

It's a better way to organize content if you use a hierarchical page structure on your website. It is considered the best practice for WordPress SEO, and it makes sense for your users as well.

So much to see... 10 WordPress plugins for social media marketing

Removing the parent page slug can potentially break the URL, but according to some experts it also makes SEO less friendly. 

Sometimes, too, it can cause conflicts with the permalink structure of WordPress.

In our experience, if you don't want a parent page slug in your child page URL, the best approach is not to create a child page at all. Instead, you can just create a page and use the navigation menus to show that it belongs to that page.

Discover to go further How to create a responsive menu for mobile WordPress

WordPress.png menu structure

However, we understand that some users may still want to use child pages for their own reasons.

With that said, let's take a look at how to easily remove the parent page slug from the child page URL in WordPress.

Remove parent page slug from child page URL

The first thing to do is to install and activate the plugin Custom Permalinks. For more details, see our step-by-step guide to way to install a WordPress plugin .

After activation, you need to edit your child page. Under the page title, you will see the option to change the URL of the child page.

modification of permalinks.png

The placeholder area will display the current default URL for your page. You need to click on it and enter the custom URL you want to use for your child page.

Custom page URL

Don't forget to save your page to store your URL changes.

Read also our article on 5 WordPress plugins to create subscription forms

After saving your changes, you can click the view page button to display the URL of your child page without the parent page slug.

Discover also some premium WordPress plugins  

You can use other WordPress plugins to give a modern appearance and to optimize the handling of your blog or website.

We offer you here some premium WordPress plugins that will help you do that.

1. WPBakery Page Builder for WordPress

WPBakery Page Builder, formerly known as Visual Composer, is another premium and extremely popular page builder. Much of this popularity comes from the fact that WPBakery Page Builder comes with almost 99% of the WordPress themes by ThemeForest. But the fact remains that it is used on a very large number of websites.

Wpbakery page builder for wordpress plugin
Like Divi Builder, WPBakery Page Builder allows you both visual editing and back-end editing. Compared to something like Elementor or Divi Builder, WPBakery Page Builder's styling options are a bit limited. You have good control over the lines, but the styling options for the individual elements are a bit more limited.

Go further by discovering our tutorial on Visual composer and How to create a professional web page with the latter

If you want to use your own CSS, you can add a class or an identifier Custom CSS to individual elements, or you can add actual styles to the page level.

I'm not sure that WPBakery Page Builder has unique features that are particularly noteworthy. But what he has is a huge community of extensions.

Download | Demo | Web hosting

2. Slider Revolution

Slider Revolution is a WordPress Plugin premium, innovative and responsive carousel that beautifully displays your content. Whether it's a slider or a carousel, its drag and drop visual editor will allow you to tell the story of your company, for example, to highlight your best products, your best articles and much more.

Revolution slider wordpress plugin

Discover also our 10 WordPress plugins to easily create a popup

Its main features are: an excellent slide creation interface, drag and drop slide design, fully responsive layout, perfect management of multimedia content, optimized performance, Multilingual support, excellent customer support, support for touch screens, free and regular updates, documentation and tutorial videos available and much more.

Download | Demo | Web hosting

3. WP Menufic

WP Menufic is a responsive sliding menu that sticks to the top of the screen and avoids you always going back to the top of the website to access the menu. I sticks perfectly to your pages and in a transparent way, it blends with the decor to not harm potential visitors.

Wp menufic

It can be easily customized as it is well documented and developed using the latest web technologies.

See also Some plugins to send SMS from your WordPress blog

Its features include: the ability to hide the logo, the addition of a phone number, an email address, customization of typography, the ability to hide it on certain devices, custom CSS support, and many others.

Download | Demo | Web hosting

Other recommended resources

We also invite you to consult the resources below to go further in the grip and control of your website and blog.

Conclusion

Here ! That's it for this tutorial. We hope this article has helped you learn how to remove parent page from child page url in WordPress. 

However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation.

Feel free to share the tip with your friends on your social networks. But, in the meantime, let us know about your Comments and suggestions in the dedicated section.

...