Sep 22 2005

Update to RDC 0.7 WordPress Theme

Published by at 5:43 pm under General

This is an old article and the information contained within it may be out of date, not reflect my current views and/or contain broken links. If you feel this article is still valid and requires updating, you can use the contact form to let me know. However, I make no guarantee that it will get updated.

I’ve been using the RDC theme on my website for a while now but one thing that has been annoying me for a while now is the fact that when I am logged in (as an Admin) I don’t get an “Edit this” link for each post displayed. If I want to edit a post I have to go to the Admin area, find the post I want to edit and then edit it.

Today I decided to correct this. Now, when I am logged into my website the titles look something like this:

RDC edit link

The work required to get this working really is very minimal and is as follows:

Download the edit icon from http://www.gringod.com/wp-content/themes/rdc0.7/_css/base/icon_edit.gif

Edit index.php, single.php, page.php, archive.php in the RDC theme folder to change the lines that look like:

<ul class=”datestamp”>
  <li class=”icon date”><?php the_time(‘F jS, Y’) ?></li>
  <li class=”icon time”><?php the_time(‘g:i a’); ?></li>
</ul>

So that they read:

<ul class=”datestamp”>
  <li class=”icon date”><?php the_time(‘F jS, Y’) ?></li>
  <li class=”icon time”><?php the_time(‘g:i a’); ?></li>
  <?php edit_post_link($link = ‘Edit post’, ‘<li class=”icon edit”>’, ‘</li>’); ?>
</ul>

Then you need to edit the css file in <rdc root folder>\_css\base.css to add on line 494:

li.edit,
ul.edits li {
  background: url(base/icon_edit.gif) no-repeat 0 50%;
  float: right;
}

Thats all there is to it. Hopefully the RDC designers will pick up on this and incorporate it into the next release of RDC ;)

The current version of RDC (0.7) is available from: http://www.roobottom.com/wp_theme/?p=16

14 responses so far