Sweet, Better Already!
Posted on Aug. 1, 2009[Note: This was originally three posts, and applied to my previous Wordpress blog]
Great, the integration is going well. I made my own theme and have been modifying its index.php and header.php files. I’m mostly posting this just so I have two posts to work with in making the theme. Cheers!
I think I’ve mostly incorporated the blog! I’m pretty happy with the results, really. I have to figure out what to do about that stupid sidebar with all the archives and everything. It’d be easy enough just to remove it, but it’s pretty handy.
Getting it to float off to the right is trickier than I would have thought. Now it’s just kinda hanging out down below. Oh well. That’s for tomorrow.
Then I have to fix up the comments and a few other little tweaks, but all-in-all, I think it’s looking pretty nice. You should have seen this page before! It was just the generic theme. Now it’s got a nice gray background, a crazy dog at the top, etc.
Okay, I’m going to say the blog is nicely mixed into my site now. It wasn’t so bad, really, but I really had to brush-up on my CSS. As I mentioned before, I made a new theme to integrate it. Probably about 95% of the changes were done in the theme’s index.php, header.php, sidebar.php, footer.php, and my stylesheet.
I had to dip into the wp-includes directory to modify just one file category-template.php, and that was only to change the wp_list_categories() function. Ordinarily it outputs a list with class - I’m forgetting now - but I changed it to my “sidebar_item” class, so that it would behave the same as the other items in my sidebar. I’m afraid that change will get wiped out if I update WordPress, though (which is part of the reason I’m making this post!)
In case you’re interested, this is the state of my php files:
(First, let me say that vim’s :TOhtml command is absolutely brilliant. I just highlight the contents of the files that I want to show, type :TOhtml, hit enter, and BAM!, I’ve got some nice HTML to paste into this wordpress textbox. It seems to work in Firefox, don’t know about any other browsers.)
index.php
1 2 /**
3 * @package WordPress
4 * @subpackage Default_Theme
5 */
6 get_header(); ?>
7
8
Blog
9
10
11
12
13
23
24
25
26
30
31
32
33
Not Found
34
Sorry, but you are looking for something that isn’t here.
35
36
37
38
39
40
41