Posts Tagged: wordpress

0Localisation of Amazon Affiliates links

I occasionally reference products on my various websites, and usually link them to Amazon for anyone interested in buying them. A long time ago I used to link with an amazon affiliates link but never earned anything from it as my typical readership is well distributed around the world. Unfortunately Amazon don’t provide a way to redirect visitors to their local amazon site whilst retaining to affiliates payments. There are various solutions out there but all the ones I found had issues with them, so I developed my own…. Read Full Article

5Wordpress LogoAdsense ads above the last paragraph of a post

You may have noticed that we’ve tweaked how we display our adsense ads.  We wanted some small text-only ads near the bottom of each article, which would be added automatically.  This took a little bit of tinkering, but eventually we developed a solution which works well and doesn’t seem to knock page processing times much.  Simply add the following code to your theme’s functions.php (don’t forget to change your adsense IDs) … Read Full Article

0Comment bubbleEasily set the parent of a WordPress comment

As is documented in the site update log, for a while we had a problem with our theme where it wasn’t possible to reply to a comment so that the reply would appear correctly in a threaded way.  We have no fixed this problem, but have been left with a significant number of comments which really need editing so it is easier to see what they are in reply to.  With a standard wordpress install this requires going into the database and editing there, which is very tedious.  Instead, we’ve used some simple functions to add an option to the comment-edit admin page, to set the comment parent there.  Eventually this will be developed into a proper plugin to enable this functionality.  For now the code is below, just add it to your theme’s functions.php

Read Full Article

1Comment bubbleJetpack-style comments without Jetpack

One of the best things about wordpress is the built-in social aspect provided by comments.  Getting your comment section right can be very important to any website, including ours.  Over the years we’ve experimented with various comment plugins including Disqus and more recently Jetpack.  However, we’ve always ended up bring things back in house for management, performance and privacy reasons.  When I moved back from Jetpack comments I really missed some of the slick features provided by Jetpack, both the social-network logins and the general slick styling.  Anyway, to cut a long story short I finally had time today to take a good look at how wordpress “does” comments and figure out a way to build an in-house system which looks nice and slick like the comment interface provided by jetpack.  Best of all its surprisingly simple and does things the “proper” way…
Read Full Article

9Wordpress LogoRich Snippets code for the Twenty Eleven theme

I’ve previously detailed the code for enabling rich snippets in various wordpress themes (Mystique 2, Mystique 3, Thesis & Me Gusta) as well as some generic instructions. Below is a set of edits to enable rich snippets in the built-in wordpress twenty eleven theme.

Read Full Article

0Wordpress LogoRich snippets code for Me Gusta theme

I’ve previously covered theme edits for rich snippets for various themes including Mystique 2, Mystique 3ThesisTwenty Eleven as well as some generic instructions.  Below are details of the code for how to validate rich snippets in the Me Gusta by Cosmos theme.

Read Full Article

2Wordpress LogoRich snippets code for Mystique 3.x

I’ve previously written about rich snippets code for Mystique 2.  There are also generic instructions and code for the themes twenty elevenme gusta and thesis.  Below is updated code for Mystique 3

Read Full Article

0Wordpress LogoRich Snippets code for Mystique 2.x

In addition to this site I have a personal blog where, amongst other things, I post recipes. I’ve recently discovered google’s new recipe search, and have been looking to implement support for microformats / microdata. Google provide a tool for checking your markup, called the “rich snippets testing tool“. When I tried validating one of my recipes, I encountered various errors, which have taken me a while to track down and resolve. … Read Full Article

0DIY Media Home logoFew new articles, lots of new design work

For the last 2-3 months I’ve been too busy to write much new content for the site.  This hasn’t been helped by a drop in things to write about  – most of my articles are about technology fixes or exciting new HTPC related developments.  There haven’t been too many new developments, and I haven’t fixed much technology because I’ve been too busy.  That doesn’t mean the site has been entirely ignored however…

Read Full Article

21Wordpress LogoRich Snippets Code for Thesis Theme

In response to a query by Darko Kovancives on my previous article about fixing Rich Snippets code for the Mystique theme we have resolved the same issues with the Thesis theme.  Details of the changes required are below…. Read Full Article