News, Reviews and Interviews

Easy Guide To Making Template Pages in WordPress

The following two tabs change content below.
Avatar of Isabella
Founder of 1stAngel Arts Magazine http://1stangel.co.uk Social Area Manager on Fine Art America http://fineartamerica.com An oil painter by profession, it is actually my digital work which has been exhibited. I enjoy bringing art to non artists and artists to other artists. I have interviews on my magazine from all kinds of artist, writer and musician. I hope you enjoy them and my site as much as I do

Learn and Master Spotlight Series Blues Guitar

SCROLL DOWN FOR Template Pages

Did you know that 1stAngel Arts Magazine has a steady following of 20,000+

What better place to put your adverts or links.  We have several options for those serious in marketing their work.




ADVERTISEMENT


Check out the tabs on the left

Have you got a article you want to share with everyone?  Share it here

Guest Article on 1stAngel

Our link placement will see your site in our Business Directory

Placement in Business Directory

Three months advertising on every page of 1stAngel helps get your site seen every time someone visits our posts

Sidebar Advertising For 3 Months

SCROLL DOWN FOR Template Pages

Sometimes, when building your site in WordPress, the page just will not do what you want it to and so you need to add an HTML or PHP page but, you still want it to look a part of your site.

I am not going to go into the whys and wherefores of the coding as most people who ask me how to do things are not interested.  They just want to know how to do it in an easy and concise way.

So here is a basic template page code which you use and upload.

Anything in red is what YOU change.  Anything else should be left alone

———————————————–

Open a blank New notepad page or use a PHP editor

copy this then change the RED to what you want

—————————————————————————————————

[message_box type="note"]<?php
/*
Template Name: TITLE OF YOUR TEMPLATE
*/
?>
<?php get_header(); ?>

PLACE YOUR BODY HERE. ANY CONTENT YOU WANT ON THIS PAGE

<?php get_footer(); ?>[/message_box]

—————————————————————–

Change TITLE OF YOUR TEMPLATE to the title of the page you will want.  For instance, if making a page for an Amazon shop, call it Amazon so you can find it easily when uploaded.

Where it says PLACE YOUR BODY HERE. ANY CONTENT YOU WANT ON THIS PAGE, this is where any code you are putyting on that page which you want to show, goes.  For instance, if adding an Amazon shop, or iframe for another site or page, this is where that would go.

Save the page as TitleOfYourTemplate.php  Notice it MUST be saved as PHP  not HTML as you are calling PHP on that page.

—————————————————————–

Upload the page to your theme folder.  So it would be public_html/wp_content/YourThemeYouAreUsing/Template.php

—————————————————————–

Make a new page

On the right you will now see a Template section

Choose your page and save

View

HERE IS AN EXAMPLE FOR YOU TO DOWNLOAD

RIGHT CLICK ON THE DOWNLOAD TITLE AND SAVE LINK AS  – REMEMBER TO OPEN IN NOTEPAD OR PHP EDITOR

http://i0.wp.com/1stangel.co.uk/wp-content/plugins/downloads-manager/img/icons/default.gif download: WordPress Template Page example (349B)
added: 11/08/2012
clicks: 121
description: Right click and save to your computer. Open in notepad or a PHP editor to edit.

 

Or here is a TEXT FILE.  Please make sure to save as PHP when you have completed editing this

 

http://i0.wp.com/1stangel.co.uk/wp-content/plugins/downloads-manager/img/icons/default.gif download: Template Example TEXTFILE (375B)
added: 12/08/2012
clicks: 260
description: If using this one, make sure you save the completed file as a PHP file NOT a text

 

© 2012 – 2013, Isabella Francesca Abigail Shores. All rights reserved.


Feedback Wanted!

Did you enjoy this post?
Did you read it all?
What topics would you like to see us write about?
Are there any particular creatives you would love to meet?
Let me know in the comments below or Tweet: @1stAngel or contact me here on the site.





1stAngel Magazine is Stephen Fry proof thanks to caching by WP Super Cache

CLICK HERE TO JOIN US

%d bloggers like this: