How to Remove Parent Slug From Child Page URL in WordPress

0
43

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

By default, WordPress provides the mum or dad web page’s slug as a prefix to youngster web page URLs, and that is good for search engine optimisation. However, some individuals could not need the mum or dad web page slug in the URL.

In this text, we’ll present you ways to take away the mum or dad web page slug from a toddler web page URL in WordPress.

How to Remove Parent Slug From Child Page URL in WordPressHow to Remove Parent Slug From Child Page URL in WordPress

What Is a Parent Page Slug in WordPress?

Your WordPress website comes with two principal content material sorts referred to as posts and pages.

Pages are hierarchical, which implies they’ll have child pages. These youngster 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 ‘Products’ mum or dad web page with ‘Pricing’, ‘Support’, and ‘Features’ youngster pages.

By default, the URL of a kid web page in WordPress could have its mum or dad web page’s slug in the URL. Here’s an instance:

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

Using URLs like that is one of the best ways to set up content material inside a hierarchical web page construction in your web site. These URLs are thought of finest follow for WordPress SEO and can make sense to your customers after they learn them.

It’s normally not a good suggestion to take away the mum or dad web page slug. It can probably break the URL, and a few specialists imagine it’s much less SEO-friendly. Sometimes, it might even trigger conflicts with the WordPress permalink construction.

In our expertise, should you don’t desire a mum or dad web page slug in your youngster web page URL, then the perfect strategy is to not create a toddler web page in any respect. Instead, you may merely create a traditional web page and use a navigation menu to present that different pages belong below that web page.

Adding Child Items to a MenuAdding Child Items to a Menu

However, we perceive that some customers should still need to use youngster pages and never embody 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 toddler web page URL in WordPress.

Removing Parent Page Slug From Child Page URL in WordPress

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

Upon activation, you want to edit the kid web page that you really want to change. Under the content material space, you will notice a ‘Custom Permalinks’ area the place you may change the kid web page URL.

Change child page URLChange child page URL

The permalink area 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 on your youngster web page.

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

We deleted the places mum or dad slug from the URL, as you may see in the screenshot under.

Custom page URLCustom page URL

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

After saving your adjustments, the plugin will robotically redirect the previous permalink to the brand new tackle. This means 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.

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

Our Best Guides on Pages and Child Pages

Now that you know the way to customise a toddler web page’s URL in WordPress, it’s your decision to be taught extra about how to use pages and youngster pages in WordPress:

We hope this text helped you learn the way to take away the mum or dad web page slug from a toddler web page URL in WordPress. You can also need to see our information on how to create a custom page in WordPress or our professional picks for the best drag and drop page builder plugins for WordPress.

If you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can even discover us on Twitter and Facebook.



Source link