Daily Archive for August 2nd, 2008

K2 Home Page for WPMU

Upon deciding to use K2 for my WPMU installation, I was troubled at the idea of setting up a ‘home’ page like the home theme that comes standard in the WPMU.

I’m troubled a lot, when I do things like this.  I’m no idiot when it comes to this stuff, but I am very amateur and will (quite stupidly) try things on my own for countless hours of frustration before hitting the forums and other usual avenues of information.  I am my own biggest pain in my ass.

Any other theme would pose less of a problem for me, but K2 is a very, very nice and more complex theme, and is ridiculously easy to make additional styles for.  So what I wanted to do was create a ‘home’ style that I could use for the home page.  I thought that this would be very easy.

For once I was right.

In the main K2 directory, I created a new page template (and called it page2.php – very original, I know). And at the top of the template, I included the following:


<?php
/*
Template Name: home
*/
?>

This is so that when you create the page in the next step, ‘home’ will show up as a page template option.

On the page2.php, I added the php coding that I wanted for the ‘home’ page as if it were the regular index page, calling for the header, content, sidebar and footer. One could always just cut and paste the code from the original home theme ‘home.php’ page and adjust for CSS as necessary.

After saving the file, I created a page in the dashboard, titled it ‘ill-literati.org’ so that would show up in the tab menu and saved the page with no additional content.

I then went to the Site Admin: Settings: Reading and chose ‘Static Page’ for Front Page Displays, with Front Page set to ‘ill-literati.org’. Saved my settings and went to the home page and BAM! Just what I wanted and in no time flat for once.

There is probably a better way to to this, possibly an easier way, but this does work and for the moment, that’s good enough for me.