Posts Tagged ‘WordPress Theme’

WordPress Theme Development 6 – Theme Functions

The WordPress theme functions file, functions.php, basically acts like a plugin, adding more features to WordPress theme. Currently I added the code as following to this file for supporting widget in dynamic sidebar.

WordPress Theme Development 5 – Sidebar

In the main index template file, index.php, I added sidebar include tag, get_sidebar();. This tag will include the file sidebar.php. Now, I will talk about what information will be included in this file. Your sidebar needs to support dynamic widget sidebar as well as old style sidebar. Hence, <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) [...]

WordPress Theme Development 4 – Footer

Normally, main index template file, index.php, consists of get_header();, posts (the loop) and get_footer();. If footer.php file exists, the code inside this file will appear in get_footer(); section. In footer.php, you might want to show WordPress support by having the “powered by” link in this file. I also include the WordPress version, so that the [...]

WordPress Theme Development 3 – Header

Normally, header.php will start with html doctype declaration, and xhtml namespace. By default, WordPress theme is using XHTML 1.0 Transitional. WordPress function, language_attributes();, will display the language attributes for the html tag. If you want your site supporting XFN (XHTML Friends Network), you can add profile=”http://gmpg.org/xfn/11″ for the header tag. Inside header tag, you will [...]

WordPress Theme Development 2 – Minimum Main Index Template

Let’s talk about index.php template file. This file is a must for WordPress theme. If any file is missing, WordPress will look for this main template file. Currently, I will use these WordPress themes below as references for learning WordPress theme.

WordPress Theme Development 1 – Start with Theme Style Sheet

I decided to develop WordPress theme from scratch in order to learn how the WordPress theme works. This WordPress theme development series is for WordPress version 2.7. Some of template tags that I use only available in WordPress version 2.7. So you might want to modified it to suite other WordPress version. First of all, [...]

Add Gravatar in WordPress Comments

Recently I start using Gravatar (an abbreviation for globally recognized avatar). It is a free service for providing globally-unique avatars which was created by Tom Werner for blogs and web forums. I want to embedded it in my WordPress 2.7 template. So I try to insert the additional code as below in comments.php and it [...]

Remove WordPress List Pages from Sidebar

Since I already created a horizontal menu listing all my main pages, I want to remove the pages list from sidebar. The theme template file that need to edit is sidebar.php. I just need to remove this line, <?php wp_list_pages(‘title_li=<h2>Pages</h2>’ ); ?> as shown below:

WordPress List Pages

On previous post, I edited the header.php for including horizontal menu on listing main pages on this site. The code is as below:

Where to Edit Theme Template File?

The easiest way is through site administration panel. Here are the steps below: Log in to WordPress using admin account. Go to Design > Theme Editor section. Choose the theme template file (on your right) that you want to edit and then click it. After finish editing, click Update File button. Log out from WordPress.

« Older Posts

Newer Posts »