An archive of the Wordpress category

By Greg  |  July 16, 2011  |  Wordpress  |  Be the first to comment

Earlier on this evening, I decided to post a snippet of PHP that I use to get rid of my admin bar. One of my friends made a very astute comment and showed me that that one snippet could be a bit confusing. PHP is a very strict scripting language (which is pretty well the only thing I like about it) and that one snippet could be the cause of many errors.

So, in the spirit of helping new developers, I am going to put my entire functions.php file in this post. The file is commented (in PHP, lines that start with // are comments), so I trust that it will be clear. But as always, if not leave a comment and I’ll try to help.

(keep reading…)

By Greg  |  July 16, 2011  |  Wordpress  |  Comments (3)

I don’t know about you, but personally, I find the WordPress admin bar intensely annoying. While I am sure it has some utility (just none I can think of), in my mind, it adds needless clutter to my interface. Since I firmly believe in a less is more approach to interfaces, getting rid of that admin bar is one of the first things I do when I build a new theme. While I have tried a number of different things, the best way I have found to get rid of the admin bar is to open my functions.php file and add the following:

show_admin_bar(false);

If this doesn’t work or if you keep getting errors, comment on this post and I will send you an email to see if I can get it sorted for you.

By Greg  |  June 15, 2011  |  Wordpress  |  Be the first to comment

A beautiful shot of a mountain by MinutesAlone

I found this shot (by a photographer named MinutesAlone) on Flickr and wanted to put it on my blog. I’m kind of a loser for mountains, so I suspect there will be many more mountain shots to come!

When I installed this site, I installed five plugins before I started adding any content, testing the template, testing performance, etc. These aren’t the only ones that I am going to install, but they are the ones that I have installed right now.

(keep reading…)