This tutorial requires that you use the global templates set (/templates/precious/) on your site

There are several ways you can create a very basic theme using the WordPreciousss plugin.

Either way you choose, you first need to create a folder for your theme:

/themename

And just like a normal WordPress theme, you need a style.css with the following header:

/*
Theme Name: My theme
Theme URI: http://yoursite.tld/
Description: My coolest theme
Version: 1.0
Author: Your Name
Tags: Mine, Cool
*/

And below that you add your css code. You may use the style.css in themes/precious/ as a starting point, just remember to change the style’s header.

Method 0 - Super easy(?)

  1. Download CSS Play and edit style.css, the name of the theme’s folder and themecredits.php to reflect your theme’s name

Method 1 - Very easy

  1. Open your theme’s style.css and add the following to it’s header:
    Template: precious

This will make your new theme a Child Theme of “Precious”.

This is the easiest way, but require that you have WordPreciousss’ default theme “Precious” installed on your blog. If you add any template files to the “Precious” theme this will affect both themes, unless the Child theme has it’s own template files.

Method 2 - Easy

  1. Copy index.php and functions.php from the WordPreciouss default theme: themes/precious/ to your theme’s folder.

This method does of course require that you have the “Precious” theme somewhere on your computer, so..

Method 3 (WordPreciousss 3.1)

  1. Create a index.php and add the following content:
    <?php precious_loop(); ?>
    
  2. Create a functions.php and give it the content:
    <?php precious_include_function();?>
    

Method 3 for WordPreciousss 2.1.3

  1. Create a index.php and add the following content:
    <?php precious_loop(); ?>
    
  2. Create a functions.php and give it the content:
    <?php
    if ( function_exists('register_sidebars') )
    		register_sidebars(2, array(
    		'before_title' => '<h2>',
    		'after_title' => '</h2>',
    	));
    ?>
    

You’re done!

Well, now it’s all you have to do is to upload your theme’s folder to wp-content/themes/ and go to Presentation and activate the theme.

Additional files

To make your basic theme complete you can create two additional files:

  1. screenshot.jpg/png/gif
  2. themecredits.php

The screenshot.jpg/png/gif will show up on your presentation menu, and it’s nice to have if you want a preview of your theme. The screenshot should be of the size 300×225px

The themecredits.php is a file you can use to give some credits in the footer for the theme. Whatever you add in this file will show up where it says ‘Precious’ in the footer of WordPreciousss’ default theme.

It’s especially nice to use this file if you base your theme on someone else’s design.