Adding Custom Template to WordPress Page For your Website

59 sec read

Dear Friends

This blog post is targeted for the individuals who aspire to become an entrepreneur and want to develop their own web site using WordPress.

Believe I faced the same situation when I first encountered a word press website and client of mine said to me develop a custom template for word press.

I was little astonished and excited when I googled for it. And that time there were very few resources to do that but now my fellow developers around the world has come up with lot of blogs for doing this. In references section at bottom you may find few links to them.

So basically as we know WordPress is based on PHP so our template would be. Its very simple to develop a word press template. and also after finishing you need to set it to proper page.

So that template would be presented to your viewers.

Steps

  1. Please visit filemanager for your webhosting where wordpress is installed or use filezilla to access.
  2. Please open relevant themes folder in wp-content directory.
  3. Create a directory any name of your choice , For eg templ
  4. No go inside the newly created directory.
  5. Create a file called eg . custompage.php

 

/**
 * Template Name: Blogs Page
 */

Above code snippet is special systax to be at top of your custom template php file. So it will tell word press the this page would act as a template for the web page.

Now if you have page already added in your wordpress just open the page in edit and set its tamplate to the page we have created.

Please see the video above for final output.

Thanks for reading.

Sending Email Via PHP

Dear Friends Today we are going to learn how to send email via php So lets us assume a scenario where this problem might...
user
1 min read

FCM Push notification [ Server side] HTTP via PHP

Dear friends we will be having php code that can make http post request via curl to Firebase Push servers. this post request will...
user
35 sec read

Accessing data from custom DB Table

Dear Developer Accessing database to make a site dynamic is something that every PHP developer encounters with. But every time there are game changer...
user
25 sec read