WordPress v1.5 has been available since April. If you are upgrading from a previous version, these simple steps will help you upgrade to the newer version in no time.
There are many reasons for upgrading any software. Generally, they are the fact that the software has been improved and security issues have been addressed. Here are some specific reasons for WordPress users:
You should have a new WordPress 1.5 installation with the default template applied to your website. Don't worry, you can change this in a minute. First, reward yourself with a cold soda and some candy. If you want to adapt your old template to our new space-age system, continue on...
Before you begin to fiddle with your new WordPress upgrade, take few minutes to test drive it. There have been some changes. For a simple test drive, the article First Steps With WordPress points out many of the new changes to the Administration Panels and the way your site works.
Begin by poking around the Administration Panels. You are now greeted with a Dashboard which lists your latest activity and news from around the WordPress Community. Keep exploring and you will find Write Page and Manage Page panels that handle the new WordPress Pages, allowing you to add content that is outside of The Loop like "Contact", "Sign up", "About", and "Resume".On the Presentation panel, you will now see a list of Themes. There should be two. Click View Site and you will see the new look of your site. Click the back button and then select the other Theme. Click View Site again and you will see that the look of your site has completely changed.
Change it back to the Default Theme, then click View Site and take a wander around your new site. Click the various links and see how the look and information changes the way it is displayed. With the Default Theme, there are two main looks. One for the non-single post pages like the front page, categories, archives, and searches, and other one for the single-post pages. The sidebar is gone. The new modular Themes allow you to customize the look of a variety of pages within your site.When you are ready to really change the look of your site, or convert it to match your previous look, proceed on.
A few things have changed in the way templates work in 1.5, most notably the addition of themes which make developing your site templates infinitely easier.
The first thing you will notice is the template files don't live in the root directory any more, they're in wp-content/themes so go there now.
You should see at least two folders there, default and classic. Each folder now holds a complete WordPress Theme. Classic is the old WordPress style converted into a theme. Default is an adaptation of Kubrick. Poking around these themes, especially "classic" if you were familiar with our old template, will be the best way to learn how themes work.
To turn your old template into a theme :
<?php echo get_settings('siteurl'); ?>/wp-layout.css
<?php bloginfo('stylesheet_url'); ?>
<?php include(ABSPATH . 'wp-comments.php'); ?>
<?php comments_template(); ?>
/* Theme Name: My Hawt Blog Theme URI: http://example.com/ Description: Best theme EVAR Version: 1.0 Author: Me Author URI: http://example.com/ */
Depending upon how customized your old WordPress site was, the process of modifying your old WordPress layout and design may be simple or complex. There are basically three methods: Working from your old site files, designing from scratch or redesigning an existing WordPress Theme.
We recommend the latter if you are not very experienced with CSS and HTML/XHTML. To design your Theme from scratch, you will find more indepth information on how to modify the layout elements in Themes and customize your Theme at Theme Development. If you are determined to use your old site files, here are the instructions.
To modify an existing Theme, follow these step-by-step instructions.
<?php //* Don't remove this line. */ //require('./wp-blog-header.php'); ?>
@import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );
with this:
@import url( <?php bloginfo('stylesheet_url'); ?> );
<link rel="stylesheet" href="<?php echo get_settings('siteurl'); ?>/wp-layout.css" type="text/css" media="screen" />
You must change that to this:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php include(ABSPATH . 'wp-comments.php'); ?>
with this:
<?php comments_template(); ?>
require ('wp-blog-header.php');
// require ('wp-blog-header.php');
The top of your wp-comments-popup.php must look like this:
<?php /* Don't remove these lines. */ $blog = 1; //require ('wp-blog-header.php'); add_filter('comment_text', 'popuplinks');
/* Theme Name: My Original Layout Theme URI: http://myblog.com/ Description: Your theme Version: 1 Author: You Author URI: http://myblog.com/ */