Sep 22 2005
Update to RDC 0.7 WordPress Theme
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:
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
Thats cool… did you make the icon yourself?
The icon is based on the calendar icon (by the date) so that it keeps the saem colour pallet, I just tweaked it a bit to add the pencil.
Nice work… looks really good! Shame most of us wont get to see it though!
Wow! This is really nice. This will definetly be added to the to the list of additions and improvements for 0.8 – especially given you have done the work for us!
Do you have any other suggestions for the theme…?
There was another tweak I made to the theme but can’t remember what it was right now.
I’ll try to figure out what it was and get back to you Paul.
I couldn’t agree with you more. I hated not having the “edit post” link, but I love the RDC theme so much I couldn’t resist using it. Anyway, after following your instructions, I was receiving a PHP error upon loading my site. After some tweaking, I found another way to set this up without having to edit the base.css page.
Instead of using
’, ‘’); ?>
, I inserted this line…Sorry Jason, it appears that your comment got mangled by my server… if you want to email me (aidy [at] gringod [dot] com) I’ll put your code bakc in the comment as it should be.
i googled for something completely different, but found your page… and have to say thanks. nice read.
Thanks for the Edit Post mod.
The problem the person above was having with the PHP parsing error was that your blog is displaying smart (curly) quotes. They look nice (I use Smarty and Markdown too) but screw the code. For others using this, just replace them with straight quotes and all works fine.
Your link to the edit-icon is wrong, it points to the date-icon instead!
Err… no, I think you’ll find that the edit icon I see is not the date icon. If you look at the screen grab you will clearly see that it is an edit icon.
If you are getting other results then you will need to go back and check your coding and that you have an edit icon in place.
hgfhfh
Kewl blog you got goin on up here.
Peace, JiggyWittit
Apologies to m-alo, I’ve just read the post again and I see what he was talking about linking to the wrong image. Its only taken me seven months to figure it out