How to add a custom new page in WordPress?

Credit: wiki

Hello,


create a php file in your theme directory through the ftp tool. For example: links.php (take any name).
Edit this newly created file and add this code to the head of the file.
<?php
/*
Template Name:xyz
*/
?>
Copy the content in your page.php directly to links.php.
Then find the place you need to change in links.php. I think one of the most important changes is the sidebar, and the other is the content of the article. As for how to change it, it depends on your needs.
After
modifying and saving this file, create a new page or modify an existing page. At the bottom right, there is a "page template" panel, select "Friend Link" in the drop-down menu and save it.

Support my writings and so that I can continue bring such awesome content for you. You know it take a lot of hard work to write an article. Just a small donation of $10 or more can help me to accomplish to reach a goal i.e. to buy a Car.

https://www.paypal.me/SachinDabodiya

Post a Comment

I will catch you soon

Previous Post Next Post