Are you questioning the right way 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 website positioning. Nevertheless, some individuals might not need the guardian web page slug within the URL.
On this article, we are going to present you the right way to take away the guardian web page slug from a baby web page URL in WordPress.
What Is a Father or mother Web page Slug in WordPress?
Pages are hierarchical, which implies they’ll have child pages. These youngster pages are depending on their guardian pages and sometimes cowl subtopics associated to the guardian.
For instance, you might 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:
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 of finest observe for WordPress SEO 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 may possibly doubtlessly break the URL, and a few specialists imagine it’s much less SEO-friendly. Generally, it could 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 very best method is to not create a baby web page in any respect. As a substitute, you’ll be able to merely create a traditional web page and use a navigation menu to indicate that different pages belong beneath that web page.
Nevertheless, we perceive that some customers should still need to use youngster pages and never embrace the guardian web page slug throughout the URL.
That being stated, let’s check out the right way to simply take away the guardian web page slug from a baby web page URL in WordPress.
Eradicating Father or mother Web page Slug From Baby Web page URL in WordPress
Upon activation, you must edit the kid web page that you simply need to change. Beneath the content material space, you will note a ‘Customized Permalinks’ subject the place you’ll be able to change the kid web page URL.
The permalink subject will present your web page’s present default URL. You simply have 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 baby web page of
areas, so the default permalink is
We deleted the
areas guardian slug from the URL, as you’ll be able to 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 adjustments.
After saving your adjustments, the plugin will robotically redirect the previous permalink to the brand new deal with. 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 previous deal with.
Whenever you view the kid web page, you’ll now discover that its URL doesn’t include the guardian slug.
Our Finest Guides on Pages and Baby Pages
Now that you understand how to customise a baby web page’s URL in WordPress, chances are you’ll need to study extra about the right way to use pages and youngster pages in WordPress:
We hope this text helped you discover ways to take away the guardian web page slug from a baby web page URL in WordPress. You might also need to see our information on how to create a custom page in WordPress or our knowledgeable picks for the best drag and drop page builder plugins for WordPress.