How to Remove Parent Slug From Child Page URL in WordPress

Are you wondering how to remove the parent page slug from a child page URL in WordPress.By default, WordPress adds the parent pages slug as a prefix t

WordPress Plugins Information:How to Remove Parent Slug From Child Page URL in WordPress

Are you questioning how to take away the mum or dad web page slug from a baby web page URL in WordPress?

By default, WordPress provides the mum or dad web page's slug as a prefix to little one web page URLs, is for Search engine optimisation. Nonetheless, some folks might not the mum or dad web page slug in the URL.

On this article, we are going to present you the way to take away the mum or dad web page slug from a baby web page URL in WordPress.

How to Remove Parent Slug From Child Page URL in WordPress

What Is a Parent Page Slug in WordPress?

Your WordPress web site comes with two major content material varieties known as posts and pages.

Pages are hierarchical, which suggests they will have little one pages. These little one pages are depending on their mum or dad pages and usually cowl subtopics associated to the mum or dad.

For instance, you may need a ‘Merchandise' mum or dad web page with ‘Pricing', ‘Assist', and ‘Options' little one pages.

By default, the URL of a kid web page in WordPress may have its mum or dad web page's slug in the URL. Right here's an instance:

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

Utilizing URLs like that is the easiest way to arrange content material inside a hierarchical web page construction in your web site. These URLs are thought of finest for WordPress Search engine optimisation and can sense to your customers they learn them.

It's normally not a good suggestion to take away the mum or dad web page slug. It might doubtlessly break the URL, and a few consultants consider it's much less Search engine optimisation-friendly. Generally, it could even trigger conflicts with the WordPress permalink construction.

In our expertise, for those who don't desire a mum or dad web page slug in your little one web page URL, then the perfect strategy is to not create a baby web page in any respect. As a substitute, you possibly can merely create a standard web page and use a navigation menu to present that different pages belong beneath that web page.

How to Remove Parent Slug From Child Page URL in WordPress

Nonetheless, we perceive that some customers should still need to use little one pages and never embrace the mum or dad web page slug throughout the URL.

That being stated, let's check out how to simply take away the mum or dad web page slug from a baby web page URL in WordPress.

Eradicating Parent Page Slug From Child Page URL in WordPress

The very first thing you want to do is set up and activate the Customized Permalinks plugin. For extra particulars, see our step-by-step information on how to set up a WordPress plugin.

Upon activation, you want to edit the kid web page that you really want to change. Beneath the content material space, you will notice a ‘Customized Permalinks' discipline the place you possibly can change the kid web page URL.

How to Remove Parent Slug From Child Page URL in WordPress

The permalink discipline will present your web page's present default URL. You simply want to click on it and enter the customized URL you need to use to your little one web page.

In our instance, the hollywood-boulevardeweb page is a baby web page ofplaces, the default permalink is places/hollywood-boulevarde.

We deleted the places mum or dad slug from the URL, as you possibly can see in the screenshot beneath.

How to Remove Parent Slug From Child Page URL in WordPress

Don't overlook to click on the ‘Replace' button to save your web page and retailer your URL adjustments.

After saving your adjustments, the plugin will routinely redirect the previous permalink to the brand new tackle. This implies your guests won't see a 404 error in the event that they click on a hyperlink or bookmark to the web page's previous tackle.

Once you view the kid web page, you'll discover that its URL doesn't comprise the mum or dad slug.

Our Greatest Guides on Pages and Child Pages

Now that you know the way to customise a baby web page's URL in WordPress, you might have considered trying to study extra about how to use pages and little one pages in WordPress:

  • How to Create a Child Page in WordPress
  • How to Show a Checklist of Child Pages for a Parent Page in WordPress
  • How to Higher Handle WordPress Pages with Nested Pages
  • How to Create a Touchdown Page with WordPress

We hope this text helped you find out how to take away the mum or dad web page slug from a baby web page URL in WordPress. You might also need to see our information on how to create a customized web page in WordPress or our picks for the perfect drag and drop web page builder plugins for WordPress.

Alan

Alan

I'm an IT guy who works in software development. Loves programming and is passionate about learning new technologies and solving problems. I usually work hard, and in my spare time I like to read books, listen to music, and play games. Cheerful, good at communication, responsible and team spirit. Dream of creating my own product one day

Articles: 120

Leave a Reply

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