Are you questioning the way to take away the dad or mum web page slug from a toddler web page URL in WordPress?
By default, WordPress provides the dad or mum web page’s slug as a prefix to little one web page URLs, and that is good for Website positioning. Nevertheless, some folks might not need the dad or mum web page slug within the URL.
On this article, we’ll present you the way to take away the dad or mum web page slug from a toddler web page URL in WordPress.
What Is a Guardian Web page Slug in WordPress?
Your WordPress web site comes with two important content material sorts referred to as posts and pages.
Pages are hierarchical, which suggests they will have little one pages. These little one pages are depending on their dad or mum pages and usually cowl subtopics associated to the dad or mum.
For instance, you might need a ‘Merchandise’ dad or mum web page with ‘Pricing’, ‘Assist’, and ‘Options’ little one pages.
By default, the URL of a kid web page in WordPress could have its dad or mum 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 prepare content material inside a hierarchical web page construction in your web site. These URLs are thought-about finest follow for WordPress Website positioning and can make sense to your customers after they learn them.
It’s normally not a good suggestion to take away the dad or mum web page slug. It may well probably break the URL, and a few consultants consider it’s much less Website positioning-friendly. Typically, it might even trigger conflicts with the WordPress permalink construction.
In our expertise, if you happen to don’t desire a dad or mum web page slug in your little one web page URL, then the perfect method is to not create a toddler web page in any respect. As an alternative, you possibly can merely create a traditional web page and use a navigation menu to indicate that different pages belong below that web page.
Nevertheless, we perceive that some customers should still wish to use little one pages and never embrace the dad or mum web page slug throughout the URL.
That being mentioned, let’s check out the way to simply take away the dad or mum web page slug from a toddler web page URL in WordPress.
Eradicating Guardian Web page Slug From Baby Web page URL in WordPress
The very first thing you might want to do is set up and activate the Custom Permalinks plugin. For extra particulars, see our step-by-step information on the way to set up a WordPress plugin.
Upon activation, you might want to edit the kid web page that you simply wish 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.
The permalink discipline will present your web page’s present default URL. You simply have to click on it and enter the customized URL you wish to use on your little one web page.
In our instance, the hollywood-boulevarde
web page is a toddler web page ofareas
, so the default permalink is areas/hollywood-boulevarde
.
We deleted the areas
dad or mum slug from the URL, as you possibly can see within the screenshot beneath.
Don’t overlook to click on the ‘Replace’ button to save lots of your web page and retailer your URL modifications.
After saving your modifications, the plugin will mechanically 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.
If you view the kid web page, you’ll now discover that its URL doesn’t include the dad or mum slug.
Our Greatest Guides on Pages and Baby Pages
Now that you know the way to customise a toddler web page’s URL in WordPress, it’s possible you’ll wish to study extra about the way to use pages and little one pages in WordPress:
We hope this text helped you learn to take away the dad or mum web page slug from a toddler web page URL in WordPress. You may additionally wish to see our information on the way to create a customized web page in WordPress or our knowledgeable picks for the perfect drag and drop web page builder plugins for WordPress.
In the event you preferred this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may as well discover us on Twitter and Facebook.
Leave a comment