WordPress is great right out of the box, but the default setup leaves many areas for improvement. Here are just 5 things you could do to boost performance, SEO or usability.
Boost your page serving speed
You can use a caching plugin to speed up your blog, but you could also add a snippet of code to the top of your header.php theme file to dramatically make improvements as well. If your web server supports zlib compression, add this to the very top of your theme’s header.php file for a quick boost:
<?php
ini_set('zlib.output_compression', 'On');
ini_set('zlib.output_compression_level', '1');
?>
Split up your RSS feed
RSS feeds are great for keeping up with what’s going on, but what if your readers want the latest on just one of your categories? You can easily create a linkable list of category feeds with a quick addition of code. Decide where you want to list your individual feeds (the sidebar perhaps?) and insert this where you want it:
<?php wp_list_cats('sort_column=name&optioncount=1&feed=RSS'); ?>
The default appearance is rather ugly if you ask me, so some CSS styling would be in order after doing this. Source
Remove post revisions
I really don’t like my WordPress databases being littered with unnecessary clutter, and one of the biggest offenders are the post revisions. That’s why I like to nip this one in the bud every time I do a fresh install of WordPress. You can stop the accumulation of post revisions by adding this line to your wp-config.php file when you do your install:
define('WP_POST_REVISIONS', false);
Remove the WordPress version in the header
Your WordPress blog will be a little more secure if you don’t broadcast to the world what version of the software you are using. By default, WordPress inserts a tag in the header declaring the version number. Remove this tag by going to your blog theme’s functions.php file and adding this line to it:
remove_action('wp_head', 'wp_generator');
Add breadcrumb navigation
Breadcrumb navigation is good for visitors and good for SEO. You can use a plugin to enable this feature, or you could avoid adding yet another plugin and coding this in manually. Open up your theme’s functions.php file again and enter the following code:
function the_breadcrumb() {
if (!is_home()) {
echo '<a href="';
echo get_option('home');
echo '">';
bloginfo('name');
echo "</a> » ";
if (is_category() || is_single()) {
the_category('title_li=');
if (is_single()) {
echo " » ";
the_title();
}
} elseif (is_page()) {
echo the_title();
}
}
}
Then open up your theme’s single.php file and enter this code where you want the breadcrumb navigation displayed:
<?php the_breadcrumb(); ?>
Again, this would also need a touch of CSS styling in order to remove the ugly from it. Source
What tricks do you have in the bag for tweaking your WordPress blog? Do you have any tips to add to this short list?
{ 8 comments… read them below or add one }
I have a few extra items I do to any new Wordpress blog installation. In fact, I created a checklist and just walk through these before I call it “installed”.
Most of these Wordpress Tweaks are for either SEO or visitor experience and I highly recommend them.
Thanks for the hints. I’ll try speeding up my site with hint #1 and I did look for my WP version in my header but it may have been coded away by the developer already. Again, thanks for the hints.
Hi Rob,
I don’t have a WP blog that I’m currently working on, but have a question about something I like on your blog. Where did you get the social medial buttons that you have at the bottom of every post? Is that a WP widget or is it something I can add to my blog?
Thanks –
Pam
I don’t exactly remember where I picked up those icons at, but I think I have the whole set on my computer somewhere.
I’m not using a plugin to show them at the end of each post, I put in some custom code to do that instead. I’m not sure how you would go about doing something like that on Blogger.
Pam, that is yet another reason to get off of the Blogger.com blog and onto a self-hosted Wordpress.org blog. More flexibility, more plugins, more options.
And, it’s no longer hard. I move folks from one blogging platform to another quite a lot.
As an aside, if jumping overboard isn’t your style, you can develop a little bit of code and keep it handy. Then you could paste it to the bottom of each post. No, it won’t allow things like direct linking your Twitter status update to the post URL, but you could get some additional social connections out of it. Something like:
(Really hoping that displayed as text, not real HTML embedded. And if it did… so sorry Rob.)
Hi Cenay,
Apparently, it didn’t even go through. I never touched a thing.
Okay Rob, with your permission, gonna try that again…
Well heck, just delete these two messages. Not sure why it won’t show, wrapping it with blockquote and code both. Last one wrapped with pre.
Well, let me try one more…
<center><a href="http://profile.to/cenay"><img border="0" alt="My Facebook Connection" src="http://www.cenaynailor.com/images/facebook_icon.png"/></a><a href="http://delicious.com/Cenay"><img border="0" alt="My Delicious Profile" src="http://www.cenaynailor.com/images/delicious_icon.png"/></a><a href="http://www.youtube.com/cenaynailor"><img border="0" alt="My YouTube Channel on Online Marketing Tips" src="http://www.cenaynailor.com/images/youtube_icon.png"/></a><a href="http://www.twitter.com/Cenay"><img border="0" alt="My Twitter Profile : Follow Me For Online Marketing Tips" src="http://www.cenaynailor.com/images/twitter_icon.png"/></a>
<a href="http://digg.com/users/cenay"><img border="0" alt="My Digg Profile – Come Be A Fan Of Online Marketing Tips" src="http://www.cenaynailor.com/images/digg_icon.png"/></a><a href="http://foundyou.stumbleupon.com/"><img border="0" alt="My Stumbleupon Profile for Online Marketing Tips" src="http://www.cenaynailor.com/images/stumbleupon_icon.png"/></a>
<br/></center>