6 min read
Advanced Search Engine Optimization (SEO) for Wordpress
I spent a few hours over the weekend further optimising this blog for search engines. Here's exactly what I did, and why.
I spent a few hours over the weekend further optimizing my blog for the search engines. This stuff is fairly advanced, so please don't be dismayed if you don't follow it all. Ask your clarifying questions in the comments and I'll answer them. Now, I don't want to suggest that I have done all that I can. There is a lot more that I am planning to do, but what I have done in the last 24 hours will have a very good effect in the SERPs... at least I fully expect so.
Here's what I've done:
- Limit the indexing of the search "bots" to only the pages that matter.
This is done (primarily) with your robots.txt file. Mine disallows all "linking" pages except my sitemap, as well as very old pre-2003 content, which is off-topic, small in quantity, very old and nothing I care about. I also don't want any search results pages indexed, because these are, again, just "linking pages" that give you, the reader, a way to get from one post to another. But the search engines have a better, more clean, way to do this... - Rename your archives page to "sitemap", link to it properly, and link to all content from it.
I can't prove this, but I suspect that a search engine likes the sound of "sitemap" a lot more than "archives". A sitemap is there for one reason (which the search engines love): to link to all content on your site from one page. To do this, I hijacked the code in Shawn Grimes' Clean Archives Plugin to have all posts on my site listed by month. I dropped this code into the archives page, which I then renamed tositemap.php. I also made sure my main header and footer menus both contain a link to this page. The point is I am telling the search engines to really really go look at this page, and all posts are then just one hop away.
(Predicting someone's question: no, I don't care for, or believe in Google Sitemaps. What I believe in is a blog that has every piece of important content on a sitemap page, which is linked to from the menu/s of every page on the site. If you've got that, you don't need a Google Sitemap. I suspect people who include the Google Sitemap plugins in their list of must-have plugins don't really know why!) - Make the sidebar a separate page, and load it via AJAX.
Yeah this is a little weird, but bear with me. SEO gurus like Aaron Wall make a really big deal about "link authority", but I suspect they keep a lot of their best findings for their expensive boot camps and things. My take on it is simple: Google and other search engines give relative "weight" to the links on your page (whether or not they point to content on or off your blog/site). The best you can do is minimize the number of "menus" or "lists" on your page, that could even possibly confuse Google as to whether they're menus or not. Ideally: one HTML link list in your header area, labelled as a menu, somehow, and another in the footer.
You'll have to ponder this one. Go have a look at seobook.com, for a moment. Where's the sidebar? It's NOT THERE! You ever wondered why? I suspect Aaron is deliberately keeping to two clearly-marked up menus (a header and a footer), knowing that Google and other SEs will give these links a lot of "authority". But am I right about this? Well, go see how Google indexes all the pages on his site.
The pages linked from the menu/s (almost) all come first.
Now, the problem I have with Wordpress, as it is typically installed, is that the sidebar is loaded full of links. Links to tags, links to categories, links to friends, links to searches, and so forth. Consider how many link lists are in the average sidebar on the average Wordpress site, and consider your own blog structure...
However, we love our sidebars. They help people get to the good stuff. They help us design a blog theme that has "community" written all over it, and that's important. But all it will do for search engines is confuse them, and dilute the authority of the links that matter. So what to do?
My simple solution is to load the sidebar via AJAX, so that none of the sidebar content is in the HTML of the page. If you look at the source of this page, this is all you'll see where the sidebar goes:<div id=\"sidebar\">The pages on my site now look a lot closer to those of Aaron Wall, at least in terms of the dramatically reduced number of links on the page, and the much more obvious importance the header menu now has, to search engines (it's not competing with other links lists and so forth). However, you the reader still see all the links and community goodness that I need/want you to see... so we all win!
<div id=\"sidebar-ajax\"></div>
<ul class=\"sidebar_list\">
<li class=\"widget\">
<script type=\"text/javascript\" src=\"http://pub.mybloglog.com/comm2.php?mblID=...</script>
</li>
</ul>
</div>
I have just a couple of lines of JavaScript in the HEAD to load the content via AJAX -- the functionality of which is already loaded and ready to go on my page, thanks to the prototype.js library that's needed for the bookmarking popups (at the end of every post).
(Note: I can't include JavaScript from external sources in the AJAX-loaded sidebar content, because it won't execute, so it's outside of that... in this case, only the MyBlogLog block of photos/links is at issue here.)
See you in a month...
In about a month we'll review this and look at how my content is indexed, how my posts rank relative to each other, etc. It will be fun to see how it all works out. I'd be thrilled to get the results that Jeremy got!
In case you're wondering, this post has focussed on site architecture and internal linking issues. SEO is equally about page structure, link-building strategy, and loads of other stuff, but I think the stuff I've mentioned today is less often spoken about, but massively important. I'd encourage you to spend some time in research on this, and let us know what you find out!
Finally, some may wonder if this AJAX loading of content (so none of the HTML appears on the page) is a kind of cloaking trick... and that's a fair question. My answer is that I am not delivering different content to the search engines, but rather just a little extra content to you, the human reader. I don't consider that cloaking, which has the intention to deceive the SEs.
seo, search engine optimization, optimizing wordpress, blog optimization, blogging, alister cameron, aaron wall, shoemoney, ajax, sidebar, google, search engines, wordpress, google sitemaps, sitemaps, cloaking


