Override the default Page and its route through the theme

[ad_1]

I am editing a custom theme for learning purposes, where there is a page template for a blog, the theme has blogs listing under ‘/blog’, however, there is another ‘/blogs’ listing on the website. All the blogs under ‘/blog’ are redirected to ‘/blogs/blog-slug’. The ‘/blogs’ are unintended listings and I want these routes to be hidden but the blog details use it. what is a good way to override ‘/blogs’ page with ‘/blog’ custom page under page template or change the redirection of ‘/blogs/blog-slug’ to ‘/blog/blog-slug’.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer