My Blog of Japan Japan!

Posted
17 October 2007 @ 10pm

Posted In:
CSS, PHP, Programming, Wordpress

DePo Clean Theme - Modifications and Reparations

I started using the very elegant wordpress theme DePo Clean from yesterday. It’s a nice sparse spartan theme with not too much busyness and I liked it the minute I saw it. There were a few teething problems with it which it took a while to fix. Here’s some of the bugs I found.

Day of the Grasshopper

The first problem was that straight after installation, DePo Clean crashed my site. The reason was that I hadn’t installed the FlickrRSS plugin. I reckon that the DePo theme is suffering from some problems related to Wordpress 2.3, that’s what some of the people on the message board for the theme seemed to be saying. After I installed the plugin, the site was up and running again. Still, it shouldn’t happen like this.

If you don’t want to install that plugin, or you don’t use Flickr, you can go to the Theme Editor (/wp-admin/theme-editor.php) and start messing with the code. The part to change is this:

<div class=”flickr”>
<span><a href=”http://flickr.com/photos/mymapofjapan/”>Flickr <small class=”fey”>View All »</small></a></span>
<?php if (get_flickrRSS()): ?>
<?php get_flickrRSS(); ?>
<?php endif; ?>
</div><!– end flickr –>

Just delete the lot and it should work.

The second problem was that the archive link in the footer didn’t point to anywhere, when I clicked it it gave me a 404. The easiest way to change this was in the theme editor too. Go to footer (or footer.php if you’re editing the files directly) and just delete the line

<p><a href=”/archives/”>View All Archives</a></p>

I went a bit further and edited the styles.css file to make a wide DIV for the footer and used the wordpress function wp_get_archives to display the latest articles. My first real taste of wordpress hacking! Here’s the code I used:

<div class=”long”>
<p><strong>Recent Posts</strong></p>
<ul class=”nav”><?php wp_get_archives(’type=postbypost&limit=5′); ?></ul>
</div>

and in the styles.css

.footer div.long {
width:456px;
margin: 0 20px 0 0;
float:left;
}

The next problem was that the flickr link at the top was hard coded with a link to the DePo writers flickr page. This is a bit counterintuitive, when I have a line of my own photos, each linking to my own photos page, the “View All” link should point to my photo page. I altered line 6 in index.php from this:

<span><a href=”http://flickr.com/photos/fraying”>

to this, my own page

<span><a href=”http://flickr.com/photos/mymapofjapan/”>

I’m looking forward to doing more modifications with this beautiful theme.

Update:  More repairs here.


No Comments Yet


There are no comments yet. You could be the first!

Leave a Comment

Testing out the Flickr Wordpress Plugin (with Prada Building Photos) Flickr Photo Gallery - Getting My Borders Back