Contemplation

Customizing Wordpress

I’ve been spending far more time on editing, customizing and tweaking my theme compared to posting (and even responding to comment, I apologize for that).

So I had an idea, which grew out of a friend’s request to help with their wordpress theme. Since I’ve been playing around quite a bit with wordpress and PHP (its a shame not to share good things), I will be offering to edit and customize wordpress themes on request. I’m also up for setting up blogs, and publishing the material for those who aren’t too friendly with web technologies (or computers in general).

Blogging is a revolutionary medium of communication, and so, by helping those who (for any reason) didn’t get around to blogging, free expression and thought will be promoted and, more importantly, exercised.

Finally, I’m not a programming guru, however, my experience is reflected in the blog. If you’re interested, you can contact me via email (see page footer).

Alternating Blog Themes

I should be working on more important things (like my career, for example), but I decided to spend yet more time faffing about and play with some code, meanwhile at least.

I’m not sure if this trick has been documented elsewhere on the web (it probably has), but it was only extended from a “custom greetings” code I learned once (the ‘good morning/evening/night’ one, if you ever came across it). So, I thought I’ll display my header background in a different color (express ‘color overlay’ filter photoshopping) depending on the time of the day. Of course, you can decide to display a whole different theme altogether if you want, but I thought change the header coloring would be subtle and interesting in the same time.

Now, these headers will show depending on the time of the day (GMT+3).

In the morning (0500 - 1159)
Morning Blue Header

In the afternoon (1200 - 1759)
Afternoon Original Header

In the evening/night (1800 - 2359)
Evening/Night Red Header

After midnight ( 0000 - 0459)
After Midnight Yellow Header

Well, there’s nothing to it, all you have to do is write an php function of an ‘if’ statement echoing a different css ‘id’ name (which you will have to write as well) and respectively match both. I’m not going to attempt writing a full tutorial yet (because 1. its not too complicated, and 2. because I haven’t got a proper code highlighting plug-in), but I might do so

So, hopefully you will end up visiting these pages at different times of the day to see the changes. If you do, let me know what you think of it.

,