Are you questioning how to take away the mother or father web page slug from a kid web page URL in WordPress?

Via default, WordPress provides the mother or father web page’s slug as a prefix to little one web page URLs, and that is excellent for Search engine marketing. On the other hand, some folks would possibly not need the mother or father web page slug within the URL.

On this article, we can display you ways to take away the mother or father web page slug from a kid web page URL in WordPress.

How to Remove Parent Slug From Child Page URL in WordPress

What Is a Dad or mum Web page Slug in WordPress?

Your WordPress site comes with two primary content material sorts known as posts and pages.

Pages are hierarchical, because of this they may be able to have little one pages. Those little one pages are depending on their mother or father pages and most often duvet subtopics associated with the mother or father.

As an example, you’ll have a ‘Merchandise’ mother or father web page with ‘Pricing’, ‘Improve’, and ‘Options’ little one pages.

Via default, the URL of a kid web page in WordPress can have its mother or father web page’s slug within the URL. Right here’s an instance:

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

The use of URLs like that is the easiest way to arrange content material inside a hierarchical web page construction in your site. Those URLs are thought to be best possible apply for WordPress Search engine marketing and can make sense in your customers after they learn them.

It’s most often no longer a good suggestion to take away the mother or father web page slug. It may possibly doubtlessly smash the URL, and a few mavens imagine it’s much less Search engine marketing-friendly. From time to time, it’s going to even purpose conflicts with the WordPress permalink construction.

In our enjoy, in case you don’t desire a mother or father web page slug on your little one web page URL, then the most efficient way is not to create a kid web page in any respect. As a substitute, you’ll merely create a typical web page and use a navigation menu to turn that different pages belong beneath that web page.

Adding Child Items to a Menu

On the other hand, we needless to say some customers might nonetheless wish to use little one pages and no longer come with the mother or father web page slug throughout the URL.

That being stated, let’s check out how you can simply take away the mother or father web page slug from a kid web page URL in WordPress.

Casting off Dad or mum Web page Slug From Kid Web page URL in WordPress

The very first thing you wish to have to do is set up and turn on the Customized Permalinks plugin. For extra main points, see our step by step information on how you can set up a WordPress plugin.

Upon activation, you wish to have to edit the kid web page that you wish to have to switch. Underneath the content material house, you’ll see a ‘Customized Permalinks’ box the place you’ll exchange the kid web page URL.

Change child page URL

The permalink box will display your web page’s present default URL. You simply want to click on it and input the customized URL you wish to have to make use of to your little one web page.

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

We deleted the places mother or father slug from the URL, as you’ll see within the screenshot beneath.

Custom page URL

Don’t fail to remember to click on the ‘Replace’ button to save lots of your web page and retailer your URL adjustments.

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

Whilst you view the kid web page, you’ll now understand that its URL does no longer comprise the mother or father slug.

Our Absolute best Guides on Pages and Kid Pages

Now that you know the way to customise a kid web page’s URL in WordPress, it’s possible you’ll wish to be told extra about how you can use pages and little one pages in WordPress:

We are hoping this text helped you discover ways to take away the mother or father web page slug from a kid web page URL in WordPress. You may additionally wish to see our information on how you can create a customized web page in WordPress or our skilled alternatives for the best possible drag and drop web page builder plugins for WordPress.

When you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll be able to additionally to find us on Twitter and Fb.

The publish How one can Take away Dad or mum Slug From Kid Web page URL in WordPress first seemed on WPBeginner.

WordPress Maintenance

[ continue ]