kaweh theme

Posted November 2nd, 2008 at 2:23 by Kaweh

Comments Off / Filed under: kawehdashti.com

Join the forum discussion on this post - (1) Posts


I have begun to write my first own WordPress Theme. It is based on the Starkers Blank Development Theme by Elliot Jay Stocks.

The beginnings are there. The header is as good as finished. You can sneak a peak at my other site.

Let me know what you think.

Addendum: We are running on WordPress 2.7 Beta 1 now by the way!

Technorati Tags: , , , , , ,

Comments Off     Bookmark This     Digg This
end of line...

add digg and delicious links to your blog

Posted September 27th, 2008 at 19:49 by Kaweh

1 Comment » / Filed under: kawehdashti.com

Join the forum discussion on this post - (1) Posts

Hello humans.

A couple of weeks ago I added simple delicious.com and digg com text links to my wordpress template. Now, every time I write a post, wordpress automatically adds a post-specific digg.com “digg this” and a delicious.com “bookmark this” link to the bottom of the post.

I did this because the links, widgets, buttons etc that delicious.com and digg.com provide for their users are too big, do not fit into my template and/or are not customisable enough. Having unsuccessfully searched far and wide for a how-to for simple customised text links, I decided to write a how-to of my own.

Before you start, it is important that you place the links between the code-snippets you can see below. If you don’t, the links will not be post-specific. They will instead just add your blog address, rather than the post’s permalink.

The following code should be applied to your index.php and the files that create your single posts and archives, normally single.php and archive.php

Adding a digg.com link:

<a href=”http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>”>Digg This</a>

This link can be styled using CSS just like any other html link.

In your index.php add the above code for the link somewhere between

<?php while (have_posts()) : the_post(); ?>


<?php endwhile; ?>

Adding a delicious.com link:

<a href=”http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>” target=”_blank”>Bookmark This</a>

Again, this link can be styled using CSS and should be added in your index.php somewhere between

<?php while (have_posts()) : the_post(); ?>


<?php endwhile; ?>

Del.icio.us has been relaunched as delicious.com, but the old domain still works in the link. I don’t know if this will work forever, and as soon as I know how to add the link with the new domain I will update this post.

Disclaimer: I am not a PHP guru. The stuff you see here worked for me, if it messes up your website, tough. Rant off in the forum if you like.

graphic derived from the photo “Lego DNA” by mknowles

Technorati Tags: , , , , , , , , , , , , , ,

1 Comment »     Bookmark This     Digg This
end of line...


Posted September 14th, 2008 at 2:15 by Kaweh

2 Comments » / Filed under: kawehdashti.com

I have spend the longest part of the evening trying to figure out a way to get simple customised text-only delicious.com and digg.com links to display at the bottom of my posts.

Yeah, I know there are a zillion wordpress plug-ins that do that, and that both websites provide their own solutions. However, neither the native solutions, nor any of the plug-ins I found seem to allow for the kind of customisation I have in mind. If they do, then I was simply too stupid to find out how.

Anyway, after hours of experimenting I finally managed to get just what I wanted and in the process rearranged and restructured the way posts are being displayed. Take a look at the top of any post and you will find a link to the comments for that particular post and a reference of the category the post is filed under. Previously I chose not to use categories, so until now everything has been filled under “everything”.

Underneath each post you now find another link to the comments section (hint, hint…) and the links allowing you to bookmark the post through delicious.com and share it through digg.com that have triggered this episode.

Go on and try out these new features and let me know what you think.

I am astonished that there don’t seem to be any tutorials on this and that it was so simple in the end. I will most likely write a how-to post in the next few days. The delicious.com link needs a little more work, so it will probably not be before next weekend.

Technorati Tags: , , , , , , , , , , , ,

2 Comments »     Bookmark This     Digg This
end of line...