8.3 C
London
Tuesday, April 16, 2024

How to Remove Parent Slug From Child Page URL in WordPress

Date:

Related stories

WHO hosts the first forum on traditional medicine

The World Health Organization will convene its first summit...

Despite profit-taking, the price of oil still records a weekly rise

As the dollar rose and oil speculators took profits...

Kenya bans churches after allegations of killing worshipers who were starved

According to a government document made public on Friday,...

In WordPress, do you want to remove the parent page slug from the child page url? WordPress adds the slug of the parent page as a prefix to child page URLs by default, which is good for SEO. Some people, on the other hand, may not want the parent page slug in the URL. We’ll show you how to remove the parent page slug from a child page’s URL in WordPress in this article.

In WordPress, what is a Parent Page Slug?

Posts and pages are the two main content types in WordPress. Pages can have child pages because they are hierarchical. A child page’s URL in WordPress will by default include the slug of its parent page, such as:

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

If your website has a hierarchical page structure, this is a better way to organize content. It is considered the best practice for WordPress SEO, and it is also beneficial to your users.

Read Also  How to Add Rotating Testimonials in WordPress

Removing the parent page slug may break the URL, but it also makes it less SEO friendly, according to some experts. It can sometimes cause issues with the WordPress permalink structure.

In our experience, the best approach is to not create a child page at all if you don’t want the parent page slug in your child page URL. Instead, create a page and use navigation menus to indicate that it belongs under this page.

We recognize, however, that some users may prefer to use child-pages for their own reasons.

With that in mind, let’s look at how to remove the parent page slug from a child page’s URL in WordPress.

Read Also  WordPress.com vs WordPress.org(Comparison Chart)

In WordPress, removing the parent page’s slug from the child page’s URL

The Custom Permalinks plugin should be installed and activated first. See our step-by-step guide to installing a WordPress plugin for further information.

You must edit the child page you want to change after activation. The option to change the child page URL can be found under the page title.

The default URL for your page will be displayed in the placeholder area. You must click on it and then type in the custom URL for your child page.

Remember to save your page to keep track of your URL changes.

Read Also  What is: DNS

After saving your changes, you can view your child page URL without the parent page slug by clicking the view page button.

We hope you found this article useful in learning how to remove the parent page slug from a child page’s URL in WordPress. You might also be interested in our list of the best WordPress drag and drop page builder plugins.

Oh hi there 👋
It’s nice to meet you.

Sign up to receive awesome & exclusive content in your inbox, every week.

We don’t spam! Read our privacy policy for more info.

Your Blog Master
Your Blog Masterhttp://yourblogmaster.com
Your Blog Master is more than just a blog; it’s a community of like-minded individuals passionate about technology. Join us in discussions, share your insights, and learn from others.

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

We don’t spam! Read our privacy policy for more info.

Latest stories