Wordpress

Ditched the iPhone, went Android

So, a while back I grew tired of my iphone (or rather with Apple…) and instead got a HTC Hero, which I feel is much more my cup of tea. :)

And now Wordpress has released an official Android-app and I am just now trying it out. :)

Spanish translation for WP Blank

There is now a spanish translation for WP Blank available for download here, thanks to Irene.

Thank you, Irene! :D

Creating a 4-column layout in Wordpress

I recently got a question about how to set up a Wordpress theme with three sidebars and a content column, and since that’s not an uncommon idea but a bit tricky to figure out how to do when you’re new to Wordpress I thought I’d answer in the form of a blog post and maybe help mor than one person. :)

Read more after the jump!

Read the rest of this entry »

I am geek, hear me type!

What a geektastic week I have ahead of me; this weekend it’s all about Geek Girl Meetup #ggm09 (where I’m actually speaking about Wordpress! :) ) and only a few days later I’m off to Yasuragi Hasseludden for #24 HBC; 24 hours of brainstorming, coding and networking (the real life kind, not connected by cables, that is…).

And on top of that I have a prototype to finish and assignment in my PHP-course to hand in before Sunday. Phew…

Giving Wordpress it´s own directory

Psst! In swedish after the “read more” link / Psst! På svenska efter “läs mer” länken!

I’ve been getting som questions about how to have your WP-install in a subfolder but without the /wordpress-suffix on your domain, mainly by people that have used some sort of auto-installer to set up their blog.

This often results in a situation where you already have a subdirectory and the blogadress is set to www.domainname.com/wordpress or corresponding. The instructions in the WP codex presumes that you are moving your WP files, sometimes making it a bit confusing for beginners to understand them.

Changing this acually isn’t that difficult, so here it goes:

First; some need-to-knows:
1. Use some kind of ftp-program to access the files.
2. To save yourself from headache – do not change any settings in the WP admin area under Settings/General until the very last step! ;)
3. The original index.php-file in /public_html/wordpress/ is to remain unaltered, you only need to copy it!
3. The root folder is commonly named “public_html” but not always. If unsure – ask your web host.
4. These instructions presumes that the folder where your Wordpress files are located is called “wordpress”, that your domain name is “yourbloghere.com” and that your root folder is called “public_html”.

Let’s get to work!

1. Go to /public_html/wordpress/ and download the file called index.php.

2. Open index.php in for example Notepad and find where it says require(‘./wp-blog-header.php’);

3. Change this into require(‘./wordpress/wp-blog-header.php’); and save the file.

4. Make sure you don’t have any files named index.html, index.php or anything like that in /public_html/. (If you do – rename them to for example index_old.)

5. Upload your altered index.php here. (Not in /public_html/wordpress/!)

6. Make sure everything is correct and that the “index.php” in /public_html/wordpress/ looks the same way it did when you started.

7. Now go to the admin area of your blog, Settings -> General and change “Blog address (URL)” to “http://yourbloghere.com”. (The “WordPress address (URL)” should be “http://yourbloghere.com/wordpress”)

8. Voilá – your done! Surf to http://yourbloghere.com/ and take a look! =)

Read the rest of this entry »

10 Exceptional WordPress Hacks

Do not miss out on Smashings series on WP hacks: 10 Exceptional WordPress Hacks

I’m learnig so much my brain hurts.

New and improved: WP Blank at your service!

screenshot

I’ve tweaked my WP Blank theme a bit, making it even more basic than before and a lot more compact. Also, I fixed some issues with the validation and some other odds and ends…

Feel free to download and try it out, it free for any use (commercial or non-commercial). As always, I’d love to hear what you think about it!

(You can also download the original pack here.)

Differentiate comments and replies with php

In a theme I’m working on I wanted the text on comment replies to change from “comment author says” to “comment author replies” and by adding this piece of code in “…theme-folder/functions.php” I achieved it:

if ($depth == 1):

 //if it's a primary comment, do this
 _e('says', 'blank'); 

else:

 //if it's a comment reply, do this instead
 _e('replies', 'blank'); 

endif;

Quick, easy and neat, just the way we like our code! :D

I’m still a raging noob when it comes to php, but I’m getting better. I’m quite proud that I figured this on out on my own…! *lol*)