March 2009

You are currently browsing the monthly archive for March 2009.

One question I get asked a lot is “How do I change the custom header size?” The answer is the Custom Header Resize plugin. All you need to do is change the values to reflect the size of custom header you’d like to use, and install the plugin.

For those of you who’d like to customise things further, here are a few pointers…

The plugin only defines two of the constants associated with custom headers, HEADER_IMAGE_WIDTH and HEADER_IMAGE_HEIGHT. There are a few others which you could also define in the same way:

  • HEADER_TEXTCOLOR sets the colour of the text that would go over the header image. Tarski doesn’t use this value, but other themes do.
  • NO_HEADER_TEXT is set to true by Tarski, because it doesn’t have an option to put text over the header. Again, this is more useful when using other themes.
  • HEADER_IMAGE sets the default header image. In Tarski this is set to the image you chose on the Tarski options page, which would then be overridden by any custom header image you set up.

Please note that if you have the WP_DEBUG constant set to true (this is usually only used by developers) then you’ll see a bunch of warnings as Tarski will attempt to redefine these constants. This will be fixed in the next version of Tarski.

Tags: ,

Tarski has always been ahead of the pack in terms of the number and quality of its translations, and today I’ve uploaded two new ones to our translations repository: an updated Polish translation from Marcin Gradzik and a new Romanian translation from the team at CNET.ro.

March 25, 2009 by Ben Eastaugh | 5 comments

Luca Sabato ported Tarski to Textpattern. It’s a lovely piece of work, and makes Textpattern the latest in a string of other platforms that Tarski has been ported to.

March 22, 2009 by Ben Eastaugh | 1 comment

I ran this plugin up for a friend the other day, and thought other people might find it useful: Category Stylesheets. It lets you add category-specific stylesheets to your site. Once you’ve installed the plugin you just need to add a file named category-n.css (where n is the category ID) to your theme directory. The stylesheet will be used on category archive pages for that category, and single posts in that category.

March 17, 2009 by Ben Eastaugh | 1 comment

I’ve finally got round to updating the Tarski hooks reference, so that piece of documentation is now up to date for Tarski 2.4.

The entire process is now automated, pulling the documentation straight from the inline documentation in the Tarski source code, so further updates to the hooks reference will happen entirely silently as new releases of Tarski come out.

If you’re interested in the code I use to do this, it’s available on GitHub.

Tags: ,