Simple way to create a custom layout in wordpress theme

I was always thinking how some people create completely different looking pages on their WordPress theme. Currently we see that from an static page to ecommerce site is developed using WordPress package. Many sites has different layout for different pages. WordPress provide a simple solution to create custom layout for our website built on wordpress. A custom layout of wordpress page is helpful if we want to have a layout that looks completely different than rest of our blog but still executes on WordPress CMS.

In this tutorial I will try to describe you how we can create a custom page in WordPress using the custom page template snippet.

Lets create a custom page by opening a blank file in an editor. In the very beggining of the page paste the following code:

For example:

Lets save the page as: custom_layout_1.php. The above code is simply giving a name to the template. so we can call our template MyCustomLayout1, but you can call it whatever you like for example: archive, Continue reading “Simple way to create a custom layout in wordpress theme”