-
▼
2011
(334)
-
▼
January
(36)
- How to Use WordPress for Distance Learning
- How to Track Links From Facebook to WordPress
- How to Use Gimp to Make a WordPress Blog Header
- How to Edit Block Quotes in WordPress
- How to Add Pages to Templates in WordPress
- How to Code WordPress From Illustrator
- How to Install Wordpress on a Dedicated Server
- How to Insert a LinkedIn Logo to WordPress
- How to Create a Custom Template in WordPress
- How to Rewrite WordPress Mods
- How to Change the Header in a WordPress Blog
- How to Find Free Wordpress Themes
- How to Remove Embedded YouTube Videos From WordPress
- How to Hide Tags on Wordpress
- How to Center a WordPress Post Title
- How to Find New WordPress Templates
- How to Create WordPress Header in Adobe Photoshop ...
- How to Hide Blogroll for WordPress
- How to Sync Disqus to WordPress
- How to Show Extra Quotes on WordPress
- How to Insert a Photo Gallery in Thesis for WordPress
- How to Make Widgets Side by Side on WordPress
- How to Update and Maintain a Wordpress Blog
- How to Assign Posts to a User in WordPress
- How to Make Blogroll Links NoFollow in WordPress
- How to Insert Thumbnails in WordPress
- How to Create Custom Post Backgrounds on WordPress
- How to Export WordPress to PDF
- How to Convert From TypePad to WordPress
- How to Access My WordPress on FTP
- How to Load an Excel Spreadsheet Into WordPress
- How to Convert Fixed Width to WordPress Fluid Width
- How to Change a WordPress eCommerce Page Name
- How to Set Up a Twitter Hashtag Feed on Your Wordp...
- How to Change Footer Credits on WordPress
- How to Post WordPress to a Facebook Page
-
▼
January
(36)
adsense
How to Create a Custom Template in WordPress
1. Open a blank document in a text editor and give the file a name. WordPress requires template files to be saved with a '.php' extension. Save it as 'custom_page.php' for now. The WordPress Codex contains a list of reserved filenames that cannot be used for custom template filenames. Those names are saved for predefined template files
2. Insert the following code into the page:
'Custom Page' is the name of the file, and WordPress calls it into the administration page panel by that name and defines it as a template. Change that to the desired template name.
3. Add
below the opening five lines of code. This calls the
information contained in the 'header.php' file.
4. Enter the HTML code to display the page information and style. The containers are defined in the style.css and can be copied from other template files. According to the WordPress Codex, the template files should be modeled after the 'index.php'. The following is basic HTML code used in the default WordPress theme, 'Twenty Ten':
The 'container' div defines the layout of the page and the 'content' div defines where WordPress calls the page content. The Loop and the index.php are called with the 'get_template_part();' tag. The Loop is the code that WordPress uses to display the PHP generated content, and 'index.php' adds the default design shown on the site's front page. Add additional IDs, classes and PHP between the opening and closing 'content' div. This information is dependent on the nature of the page; for instance, an 'Authors' page or 'Contact' page.
5. Insert
below the closing 'container' tag. This calls the 'footer.php,' which contains the closing
and
information for the page.
6. Save the file and upload it to the WordPress theme folder on the web server. The theme folder is located in '/wp-content/themes.'
2:49 AM | Filed Under | 0 Comments
Comments
Popular Posts
-
1. Log in to your Weebly account. 2. Click 'Theme Editor.' 3. Click on the 'Design' tab. 4. Select 'Edit CSS/HTM...
-
1. Sign up for a publisher account at Bidvertiser. Submit basic contact information and confirm your email address to get started. 2. Lo...
-
1. Log in to your WordPress dashboard. 2. Open the 'Appearance' section on the left side of the WordPress dashboard and then cli...
-
Facebook Widget 1. Create a Facebook fan page for your blog, if you don't already have one. You will have to manually share content wi...
-
1. Open your WordPress Dashboard in your preferred browser. It is accessed at the '/wp-admin' location of your site. For example, ...
-
1. Download and install the WordPress for BlackBerry app via BlackBerry App World. Download the version that corresponds with your BlackBe...
-
1. Go to your WordPress blog's administrative control panel. 2. Click the 'Settings' button on the left-side navigation menu...
-
1. Click the 'Add Contact' button on the 'Add New Post' page. This opens the 'Add a Contact Form' page. 2. Click...
-
1. Register an account with Amazon Web Services Cloud. If you have an existing Amazon account, enter your email address in the appropriate...
-
1. Log into your WordPress.com account using your user name and password. 2. Hover your cursor over the 'My Blogs' tab at the to...
Post a Comment