WordLog

A weblog authored by Carthik about the latest in the WordPress world.

Monday, March 07, 2005

Different looks for different category pages

Filed under: — Carthik @ 2:37 pm

If you, like ShadyCraig, want to have different looks for different category pages, then make the best of the information at The Codex Category Templates page.

So that’s the tip for today.

Michael (MDAWaffe) who blogs at BlogWaffe is the author of that Codex page, and many others. Kudos to Michael for all his hard work at the Codex lately!

So, again, doesn’t anyone want to take a shot at why this category at wordlog is called “Ten Percent for the Day” ? ;)

Sunday, March 06, 2005

Work on a Copy of the Theme

Filed under: — Carthik @ 10:51 pm

A majority of users start using the Kubrick theme, and make modifications as they go along to get the weblog to behave exactly the way they want it to. If you are among these users, then you will have to worry about upgrading without losing the changes you have made to the default theme.

The suggested method for dealing with this is as follows:
1) Copy all the templates and files in the wp-content/themes/default/ folder to a new folder, with a different name. Let’s call it “my-theme”.

2) Modify the style.css file in “my-theme”. Change the second line which says:
Theme Name: Default to read
Theme Name: my-theme

3) Go to the “Presentation” tab in the admin page of your weblog, and select the theme “my-theme” to be the active theme for your weblog.

That’s it! This will prevent your changes from being lost when you upgrade when a newer version of WordPress appears. This is also known to generate a mild amount of self-satisfaction and a sense of achievement at having create a new theme ;)

Saturday, March 05, 2005

First Ten Percent – Make themes out of old styles.

Filed under: — Carthik @ 6:47 pm

Starting today, I will be posting one cool tip a day. Any guesses as to why it is going to be filed under the “Ten Percent for the Day” category?

Today’s tip comes from Ryan :

The 1.2 styles can be turned into themes that inherit the classic theme’s templates. Just add a theme header that specifies where to get the templates.

/*
Theme Name: Inherit
Theme URI: http://wordpress.org/
Description: A theme that inherits the classic theme templates.
Version: 1.5
Author: Me
Author URI: http://me.me/
Template: classic
*/

Rename the stylesheet to style.css and put it in a subdirectory of wp-content/themes. The “Template:” field specifies the theme directory to look in for templates. Use “classic” to get classic theme templates and “default” to get default theme templates.

From the forums

 

Powered by WordPress

eXTReMe Tracker