Are you questioning methods to take away the guardian web page slug from a baby web page URL in WordPress?
By default, WordPress provides the guardian web page’s slug as a prefix to youngster web page URLs, and that is good for Search engine optimization. Nevertheless, some folks might not need the guardian web page slug within the URL.
On this article, we are going to present you methods to take away the guardian web page slug from a baby web page URL in WordPress.
What Is a Guardian Web page Slug in WordPress?
Your WordPress web site comes with two principal content material sorts known as posts and pages.
Pages are hierarchical, which implies they’ll have youngster pages. These youngster pages are depending on their guardian pages and usually cowl subtopics associated to the guardian.
For instance, you may need a ‘Merchandise’ guardian web page with ‘Pricing’, ‘Help’, and ‘Options’ youngster pages.
By default, the URL of a kid web page in WordPress may have its guardian web page’s slug within the URL. Right here’s an instance:
http://instance.com/parent-page/child-page/
Utilizing URLs like that is the easiest way to prepare content material inside a hierarchical web page construction in your web site. These URLs are thought-about finest observe for WordPress Search engine optimization and can make sense to your customers after they learn them.
It’s often not a good suggestion to take away the guardian web page slug. It could possibly probably break the URL, and a few specialists consider it’s much less Search engine optimization-friendly. Typically, it might even trigger conflicts with the WordPress permalink construction.
In our expertise, in the event you don’t desire a guardian web page slug in your youngster web page URL, then the perfect method is to not create a baby web page in any respect. As a substitute, you possibly can merely create a traditional web page and use a navigation menu to point out that different pages belong below that web page.
Nevertheless, we perceive that some customers should wish to use youngster pages and never embrace the guardian web page slug inside the URL.
That being mentioned, let’s check out methods to simply take away the guardian web page slug from a baby web page URL in WordPress.
Eradicating Guardian Web page Slug From Little one Web page URL in WordPress
The very first thing you have to do is set up and activate the Customized Permalinks plugin. For extra particulars, see our step-by-step information on methods to set up a WordPress plugin.
Upon activation, you have to edit the kid web page that you just wish to change. Underneath the content material space, you will notice a ‘Customized Permalinks’ subject the place you possibly can change the kid web 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 in your youngster web page.
In our instance, the hollywood-boulevarde web page is a baby web page oflocations, so the default permalink is places/hollywood-boulevarde.
We deleted the places guardian slug from the URL, as you possibly can see within the screenshot under.
Don’t neglect 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 routinely redirect the outdated permalink to the brand new tackle. This implies your guests is not going to see a 404 error in the event that they click on a hyperlink or bookmark to the web page’s outdated tackle.
If you view the kid web page, you’ll now discover that its URL doesn’t comprise the guardian slug.
Our Greatest Guides on Pages and Little one Pages
Now that you know the way to customise a baby web page’s URL in WordPress, it’s possible you’ll wish to study extra about methods to use pages and youngster pages in WordPress:
The best way to Create a Little one Web page in WordPress
The best way to Show a Checklist of Little one Pages for a Guardian Web page in WordPress
The best way to Higher Handle WordPress Pages with Nested Pages
The best way to Create a Touchdown Web page with WordPress
We hope this text helped you learn to take away the guardian web page slug from a baby web page URL in WordPress. You may additionally wish to see our information on methods to create a customized web page in WordPress or our skilled picks for the finest drag and drop web page builder plugins for WordPress.
When you preferred this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can too discover us on Twitter and Fb.
The put up The best way to Take away Guardian Slug From Little one Web page URL in WordPress first appeared on WPBeginner.
Subscribe to MarketingSolution.
Receive web development discounts & web design tutorials.
Now! Lets GROW Together!