-
▼
2011
(334)
-
▼
December
(30)
- How to Embed an MP3 Player in WordPress
- How to Edit Php.Ini Files in Wordpress for File Sizes
- How to Enable Thesis Avatars in WordPress
- How to Use Microsoft Expression With WordPress
- How to Change the WordPress Prefix Post Installation
- How to Share Music on Wordpress
- How to Use Redirects in WordPress
- How to Create a Magazine Theme for WordPress
- How to Change the Avatar Gravatar in Wordpress
- How to Format Yahoo! Pipes RSS for WordPress
- How to Change H1, H2 H3 Header Tags in WordPress
- How to Blog to WordPress via iPhone
- How to Make a PSD WordPress Theme
- How to Use WordPress Database Multiple Places
- How to Redirect a WordPress Tab
- How to Load My Logo to My WordPress Blog
- How to Insert a PNG in WordPress
- How to Connect Pages to the Footer in Wordpress
- How to Make Your WordPress Blog More Google Friendly
- How to Insert Adsense Code Into a WordPress Blog Post
- How to Insert Bookmarks in WordPress
- How to Send a Tumblr Feed to WordPress
- How to List Tags Without Links in WordPress
- How to Change the Tagline of a Post in WordPress
- How to Convert a Compendium Blog to WordPress
- How to Add a WordPress Blog to Your Zen Cart Store
- How to Change Avatars for Users in WordPress
- How to Change a Wordpress URL
- How to Create a WordPress Template Page
- How to Remove a Byline in WordPress
-
▼
December
(30)
adsense
How to Create a WordPress Template Page
1. Open up Notepad and type in the following code at the top:
This code specifies the name of your template. It's also the same name in the drop-down box of the 'Page Attributes' field when selecting a template for your WordPress page.
2. Add the following code to include the Header:
.
3. Type in the code to display content. This is the part where you can specify the layout for your page and what content to display. Use '
' tags to manipulate the layout using CSS code. For example, the standard one-page layout code for a WordPress page looks like this:
The PHP function 'get_template_part()' automatically displays content you enter for a particular page using the WordPress content editor.
4. Add the following code to include your footer:
.
5. Save the document as a PHP file.
6. Upload the file to your specific theme folder. For example, if you're using the Twenty-Ten theme, upload your template at 'wp-content/themes/Twenty-Ten.'
1:39 AM | Filed Under | 0 Comments
Post a Comment