' ; ?>

Hosting365

How to Remove Parent Slug From Child Page URL in WordPress

Tips on how to Take away Dad or mum Slug From Youngster Web page URL in WordPress


Are you questioning the best way to take away the mother or father web page slug from a baby web page URL in WordPress?

By default, WordPress provides the mother or father web page’s slug as a prefix to youngster web page URLs, and that is good for Search engine optimisation. Nevertheless, some folks might not need the mother or father web page slug within the URL.

On this article, we’ll present you the best way to take away the mother or father web page slug from a baby web page URL in WordPress.

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

Your WordPress web site comes with two primary content material sorts referred to as posts and pages.

Pages are hierarchical, which suggests they’ll have youngster pages. These youngster pages are depending on their mother or father pages and usually cowl subtopics associated to the mother or father.

For instance, you might need a ‘Merchandise’ mother or father web page with ‘Pricing’, ‘Help’, and ‘Options’ youngster pages.

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

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

Utilizing URLs like that is one of the best ways to arrange content material inside a hierarchical web page construction in your web site. These URLs are thought-about finest observe for WordPress Search engine optimisation and can make sense to your customers after they learn them.

It’s often not a good suggestion to take away the mother or father web page slug. It may well doubtlessly break the URL, and a few consultants imagine it’s much less Search engine optimisation-friendly. Typically, it might even trigger conflicts with the WordPress permalink construction.

In our expertise, when you don’t desire a mother or father web page slug in your youngster web page URL, then the most effective strategy is to not create a baby web page in any respect. As an alternative, you’ll be able to merely create a standard web page and use a navigation menu to indicate that different pages belong below that web page.

Adding Child Items to a Menu

Nevertheless, we perceive that some customers should still wish to use youngster pages and never embrace the mother or father web page slug throughout the URL.

That being mentioned, let’s check out the best way to simply take away the mother or father web page slug from a baby web page URL in WordPress.

Eradicating Dad or mum Web page Slug From Youngster Web page URL in WordPress

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

Upon activation, you might want to edit the kid web page that you just wish to change. Underneath the content material space, you will note a ‘Customized Permalinks’ subject the place you’ll be able to change the kid web page URL.

Change child page URL

The permalink subject will present your web page’s present default URL. You simply must click on it and enter the customized URL you wish to use on your youngster web page.

In our instance, the hollywood-boulevarde web page is a baby web page oflocations, so the default permalink is areas/hollywood-boulevarde.

We deleted the areas mother or father slug from the URL, as you’ll be able to see within the screenshot under.

Custom page URL

Don’t overlook to click on the ‘Replace’ button to avoid wasting 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.

While you view the kid web page, you’ll now discover that its URL doesn’t include the mother or father slug.

Our Finest Guides on Pages and Youngster Pages

Now that you know the way to customise a baby web page’s URL in WordPress, chances are you’ll wish to be taught extra about the best way to use pages and youngster pages in WordPress:

We hope this text helped you discover ways to take away the mother or father web page slug from a baby web page URL in WordPress. You may additionally wish to see our information on the best way to create a customized web page in WordPress or our professional picks for the most effective drag and drop web page builder plugins for WordPress.

For those who favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can too discover us on Twitter and Fb.



Supply hyperlink

managed wordpress hosting

댓글 달기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

WP Twitter Auto Publish Powered By : XYZScripts.com
AI Chatbot Avatar