Latest posts

inFocus WP Theme: Display Blog Post Images on Single Blog Post Pages


In a recent blog comment I was asked if I happened to know why the inFocus theme doesn’t display blog post images on single blog post pages.

I too had noticed this when adding images to my blog posts and assuming this was, for whatever reason, how the developer intended it to be thought no more of it.

However, looking at the code it seemed simple enough to add this ability. You can see the quick-and-dirty fix here or read on for what is perhaps a cleaner solution.


Expandable Sidebar Lists in WordPress


A few people have been asking about the expandable lists I have in the sidebar, so I thought I’d share how I did this. The effect is actually quite easy to achieve and uses some simple JavaScript to change the CSS display property of the element containing the list. However, there are a few things to note.


Snow Leopard 10.6.3 Update Woes


In the 10 or so years I’ve been using Macs I can’t remember an Apple software update ever adversely affecting one of the many I’ve owned. That is until the recent 10.6.3 update.

Being a bit of a software-update junkie I installed the standalone 10.6.3 update on my late-2007 24″ iMac within hours of its release. Perhaps I should have heeded the calls of those more level-headed users and waited.


inFocus Social Media Icons


WebTreats have recently released a set of Social Media Icons for all 10 of the inFocus theme colours and provided instructions on how to include them in the sidebar.

Anyone who’s tried this has no doubt noticed that on switching the inFocus theme colour the social media icons in the sidebar may not match the new chosen theme colour. Well, no big deal really. But if you want the icons to match whichever inFocus theme colour you choose, try this.


inFocus WP Theme: Customising WP-PostViews and Efficient Related Posts Plugins


Since switching to WordPress I’ve been using the WP-PostViews and Efficient Related Posts plugins. Although the inFocus theme I use now comes with its own popular posts and related posts widgets I much prefer the functionality of the aforementioned plugins.

For example, WP-PostViews displays popular posts based on post views whereas the inFocus version uses the number of comments to determine a post’s popularity. And while there appears to be little if any difference in how Efficient Related Posts and the inFocus version determine related posts, the latter does so on-the-fly whereas the former pre-determines them, thus reducing the load on the server.


WebTreats inFocus WordPress Theme: Customising the Display of Post Excerpts


Since switching my blog from Blogger to WordPress I’ve been struggling with a new design. I’m pretty savvy with the coding, but if it’s one thing I’m not it’s a designer. Reluctant though I was to use a pre-built theme template I came across the one I’m using now and couldn’t resist. It’s simple yet elegant and in my opinion far superior to anything I’ve seen both in design and functionality.

Of course a template can’t cater for everyone’s needs and I’ve amended the code a bit to suit mine. One particular change I made was the way in which post excerpts are displayed. The theme uses the the_excerpt() function which either uses an explicit excerpt or the first 55 words of the post if one is not provided. I much prefer using WordPress’s <!––more––> quicktag in my posts in conjunction with the the_content(‘Read More’) function.


Accessing localhost and Virtual Hosts Across a Local Network


I have several computers on my local network each with a local server environment provided by XAMPP. As it stands, the local server on each computer can only serve pages stored on that machine. This means that if I have a local site on computer A that I wish to access on computer B I have to replicate that site’s entire folder structure on computer B and on all other computers I want to access the site from.

No big deal really as I currently use ChronoSync to synchronise my site’s folder structure across computers. However, it is possible to have any computer on a local network serve pages that are stored on another computer on that same network. Here’s how.


Recent Comments

Recent Posts