<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mike Afford Media Blog &#187; customising</title>
	<atom:link href="http://www.mikeafford.com/blog/tag/customising/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikeafford.com/blog</link>
	<description>Mike Afford is a Graphic Designer for TV and Web based in Leitrim, Ireland.</description>
	<lastBuildDate>Tue, 07 Sep 2010 19:52:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cufón text replacement in Wordpress</title>
		<link>http://www.mikeafford.com/blog/2009/09/cufon-text-replacement-in-wordpress/</link>
		<comments>http://www.mikeafford.com/blog/2009/09/cufon-text-replacement-in-wordpress/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 11:05:21 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[fonts]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[websites]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[customising]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mikeafford.com/blog/?p=345</guid>
		<description><![CDATA[Recent experiments with Cufón text replacement, and the wp-cufon Wordpress plugin.]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 225px"><a href="http://www.mikeafford.com/images/store/tolkien-font-cufon-example.png"><img alt="Tolkien Fonts - cufon text replacement example" src="http://www.mikeafford.com/images/store/tolkien-font-cufon-example-small.png" title="Tolkien Fonts - cufon text replacement example" width="215" height="157" /></a><p class="wp-caption-text">Tolkien Fonts - cufon text replacement example</p></div>I&#8217;ve recently been experimenting with <strong>Cufón</strong> text replacement, and decided to put it to use on <a href="http://www.themoment.co.uk/tolkien/category/books-by-tolkien/" target="_blank">a site I&#8217;ve been messing about with</a>. I&#8217;d also been converting the whole thing to a Wordpress-powered site (more on that later), so it seemed to make sense to look for a plug-in to do the job.</p>
<p>So, the plugin is called <strong>WP-Cufon</strong> and you can get it at <a href="http://wordpress.org/extend/plugins/wp-cufon/" target="_blank">wordpress.org/extend/plugins/wp-cufon/</a></p>
<p>It&#8217;s quick to install, has good documentation, and it&#8217;s easy enough to specify some rules to control the text replacement on your site.</p>
<p>So for example I&#8217;ve used :</p>
<p><code>Cufon.replace('h1', { hover:true });<br />
Cufon.replace('h2', { hover:true });<br />
Cufon.replace('h5');<br />
Cufon.replace('#navbar a');</code></p>
<p>which replaces the font for h1, h2, h5 headings and any link text within the &#8216;navbar&#8217; div with a special font of my own making. All of the subsequent styling is covered by CSS. It really is very simple to set up.</p>
<p>You need to convert your font first into a format that Cufon can handle &#8211; there&#8217;s a <a href="http://cufon.shoqolate.com/generate/" target="_blank">Cufon generator</a> that does the whole thing very neatly. It also, importantly, allows you to limit usage to certain domains to protect the font from use elsewhere.</p>
<p><span id="more-345"></span>I&#8217;d previously looked at <a href="http://www.mikeindustries.com/blog/archive/2004/08/sifr" target="_blank">Scalable Inman Flash Replacement (sIFR)</a> but I have to say I think Cufón may have the edge if only for ease of set-up &#8211; although, granted a lot of the hard work has already been done by the plug-in. Oh, and Cufon doesn&#8217;t use Flash.</p>
<p>I don&#8217;t claim to understand exactly <em>how</em> Cufon works, but if you&#8217;re interested in that kind of thing have a look at <a href="http://wiki.github.com/sorccu/cufon/about" target="_blank">http://wiki.github.com/sorccu/cufon/about</a> which goes into all the nitty-gritty.</p>
<p>And here&#8217;s a link to <a href="http://www.tobias-battenberg.de/wp-cufon/" target="_blank">the creator of the wp-cufon plugin, Tobias Battenberg</a></p>
<h3>OK, Tolkien fans</h3>
<p>So this next bit is only really of interest to fans of <strong>The Lord of the Rings</strong>&#8230; (look away now if hobbits and dragons aren&#8217;t your thing!). No really.</p>
<p>The site I&#8217;ve used Cufon on is a <a href="http://www.themoment.co.uk/tolkien/category/books-by-tolkien/" target="_blank" title="Tolkien books">Tolkien book collecting site</a> &#8211; and I created a special font that brings to mind the calligraphy of the author J.R.R.Tolkien &#8211; I was pretty pleased with the end result, so if anyone&#8217;s interested they can buy a copy of <a href="http://www.mikeafford.com/buy/tolkien-font.html" target="_blank" title="Tolkien font"><strong>Tolkienesque Regular</strong> (in Truetype font format) from my store</a>.</p>
<p>I also ended up tackling another Wordress theme design from scratch &#8211; so the entire site has a kind of &#8216;Tolkienesque&#8217; feel to it. That&#8217;s the name I gave to the theme too.</p>
<p><div class="wp-caption alignleft" style="width: 545px"><a href="http://www.themoment.co.uk/tolkien/books-by-tolkien/middle-earth-related/history-of-middle-earth/the-peoples-of-middle-earth-1st-edition/" target="_blank"><img alt="Tolkien Wordpress theme" src="http://www.mikeafford.com/images/store/tolkien-font-example-website.png" title="Tolkien Wordpress theme" width="535" height="706" /></a><p class="wp-caption-text">Tolkien Wordpress theme</p></div>
<p>The Wordpress theme makes heavy use of categories to organise the 400-odd entries, and has a neat &#8216;Random Item&#8217; widget that I made to pull a text link and the first thumbnail image from a random post. Anyway, I was quite pleased with the end result. It&#8217;s been a labour of love built in spare minutes snatched here and there over the last few months.</p>
<p>But I&#8217;m most pleased by the fact that I can now use any old font I like in Wordpress, subject of course to  EULAs and other <a href="http://www.fontembedding.com/fonts-and-the-law/" target="_blank">legal niceties</a>, or at least until the legal quagmire surrounding <strong>@font-face</strong>, font embedding and linking gets sorted out. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeafford.com/blog/2009/09/cufon-text-replacement-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Wordpress Weather Widget (almost)</title>
		<link>http://www.mikeafford.com/blog/2009/05/wordpress-weather-widget-almost/</link>
		<comments>http://www.mikeafford.com/blog/2009/05/wordpress-weather-widget-almost/#comments</comments>
		<pubDate>Fri, 01 May 2009 14:55:46 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[weather]]></category>
		<category><![CDATA[websites]]></category>
		<category><![CDATA[BBC weather symbols]]></category>
		<category><![CDATA[customising]]></category>

		<guid isPermaLink="false">http://www.mikeafford.com/blog/?p=253</guid>
		<description><![CDATA[An experiment to embed my own <a title="weather icons" href="http://www.mikeafford.com/buy/weather-symbols-tv.html" target="_blank">weather icons</a> into a blog-style widget.]]></description>
			<content:encoded><![CDATA[<p>Over on the right there you should be seeing a little widget-like thing showing the weather forecast for Lovely Leitrim. <em>(UPDATE: currently disabled)</em>. It&#8217;s using my own TV graphics-style <a title="weather icons" href="http://www.mikeafford.com/buy/weather-symbols-tv.html" target="_blank">Weather Icons which you can get here</a>.</p>
<p>I don&#8217;t know exactly (yet) how to make it into a downloadable widget that other people could use on their own sites, but if I get time I may investigate how to package it up. At the moment it&#8217;s just hard coded into a regular text widget. And it&#8217;s also hard coded to pick up the weather forecast for Carrick-on-Shannon, so I expect the appeal might be&#8230; er&#8230; limited.</p>
<p><span id="more-253"></span><br />
The inspiration for this came from seeing articles like <a href="http://css-tricks.com/using-weather-data-to-change-your-websites-apperance-through-php-and-css/" target="_blank">Using Weather Data to Change Your Website’s Appearance through PHP and CSS</a> and of course, the <a href="http://news.bbc.co.uk/weather/" target="_blank">BBC Weather site which displays different graphics depending on the weather forecast</a>.</p>
<p>The main thing I wanted to learn about was just the basic process of getting and parsing a feed and using some of the data it contained to pop a weather symbol on my site &#8211; there were plenty of sites out there offering different solutions, but the <a href="http://www2.voegeli.li/no_cache/code-tutorials/php-scripts.html">php classes from Marco Voegeli</a> were a great starting point. </p>
<p>I discovered quite a few useful things while trying to put this together. Probably the most important in the end was to check your hosting company&#8217;s firewall settings&#8230; </p>
<p>I&#8217;d had the basic code working fine for AGES and was testing happily using MAMP on my local Mac, but every time I tried to put it live on the server it killed the entire blog and all my existing widgets vanished from the admin page. That usually happened right before Wordpress froze up completely.</p>
<p>Anyway, the bottom line is I needed to contact my host (Supanames) to get them to allow me to contact the remote website to access the Weather feed. There&#8217;s a link in MyPanel called &#8216;Firewall Rules&#8217; and a form to send a request to the engineers to enable connections to a particular URL. Which once again, all happened very promptly, so full marks again to Supanames support.</p>
<p>Also, if ever you lose all your widgets from your Wordpress Admin screen, I&#8217;d recommend disabling your plugins one by one until the list comes back, then remove (or edit) the offending widget, and then re-activate the plugins. I know that&#8217;s probably fairly obvious to most, and may not always solve the issue, but it&#8217;s still a good starting point.</p>
<p>Mike</p>
<p>UPDATE:  March 2010<br />
This widget had been running just fine for nearly a year, but today something went screwy and it killed the whole blog. I&#8217;ve removed it for now, pending further investigation. It&#8217;s a bit tricky because I can&#8217;t view the blog to see even what kind of error it&#8217;s causing&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeafford.com/blog/2009/05/wordpress-weather-widget-almost/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Step by Step WordPress customisation</title>
		<link>http://www.mikeafford.com/blog/2008/10/step-by-step-wordpress-customisation/</link>
		<comments>http://www.mikeafford.com/blog/2008/10/step-by-step-wordpress-customisation/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 21:29:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[blogs]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[customising]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mikeafford.com/blog/?p=48</guid>
		<description><![CDATA[As promised &#8211; here&#8217;s a quick rundown of how I tweaked the default WordPress theme to match my own website. Pretty much everything was achieved by editing either the style.css or header.php files.
The changes to the basic proportions of the page were made by increasing the #page and #footer divs from 760 to 900pixels and [...]]]></description>
			<content:encoded><![CDATA[<p>As promised &#8211; here&#8217;s a quick rundown of how I tweaked the default WordPress theme to match my own website. Pretty much everything was achieved by editing either the style.css or header.php files.</p>
<p>The changes to the basic proportions of the page were made by increasing the #page and #footer divs from 760 to 900pixels and adjusting the right sidebar content to be 250px wide (to match my own &#8216;content_sub&#8217; div) and expanding the rest of the content to fill the gap.<span id="more-48"></span></p>
<p>Next I changed the basic colour scheme &#8211; or as much as I could using color values in the style sheet (text etc). I searched all the template files to see exactly where the background images appeared and then added my own versions (at the new widths) including a body background, a footer image that closes off the main grey box backround, and a new &#8216;topper&#8217; image that does the same at the top (this needed a new div &#8211; added to the header.php file).</p>
<p>I changed the header box to be left aligned and smaller and removed the top margin from &lt;h1&gt; tag (blog title).</p>
<p>Lastly, I put a new DIV into the header php code &#8211; this is where I place all my own header content.  I also moved the background image from the body (to stop it scrolling when the browser is resized) into my own header code.</p>
<p>The last few tweaks were mainly little cosmetic changes &#8211; a bit of margin/padding adjustment and a new background colour and border around the comment boxes. And that was pretty much it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeafford.com/blog/2008/10/step-by-step-wordpress-customisation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Customised Blog Theme</title>
		<link>http://www.mikeafford.com/blog/2008/10/my-customised-blog-theme/</link>
		<comments>http://www.mikeafford.com/blog/2008/10/my-customised-blog-theme/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 09:30:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[blogs]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[customising]]></category>
		<category><![CDATA[Leitrim County Enterprise Board]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.mikeafford.com/blog/?p=36</guid>
		<description><![CDATA[I&#8217;ve have made a few tweaks to the default WordPress theme &#8211; and well, it&#8217;s nearly there &#8211; as (hopefully) you can see from this page. I haven&#8217;t checked the layout integrity in many different browsers, and I expect there will be some strange things happening on sub-pages to this blog (for example &#8211; if [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve have made a few tweaks to the default WordPress theme &#8211; and well, it&#8217;s nearly there &#8211; as (hopefully) you can see from this page. I haven&#8217;t checked the layout integrity in many different browsers, and I expect there will be some strange things happening on sub-pages to this blog (for example &#8211; if any comments come in). And I&#8217;m also not sure what will happen if I start adding or editing widgets &#8211; but hey, it was my first effort and I think it has matched up with my main site design pretty well. There&#8217;s still plenty still to do &#8211; fiddle with the look of some of the links (particularly RSS related bits) and I haven&#8217;t really set up the sidebar yet.<span id="more-36"></span> And also I haven&#8217;t updated my main website to include links to this blog (!), but the main site is in the process of being overhauled/optimised, so it should happen soon enough. But in the meantime, be advised that if you click any of the navigation links at the top of this page, you&#8217;ll be away from the blog for good&#8230;</p>
<p>I made a few notes as I was tinkering with the CSS and PHP files &#8211; I will post at some point with a breakdown of what I did. But probably not today &#8211; it is the weekend after all.</p>
<p>I will also write a post soon on the excellent training day I had at the splendid <a href="http://www.leitrimenterprise.ie/" target="_blank">Leitrim Enterprise Board </a>presented by the equally excellent <a href="http://www.johnnybeirne.com/" target="_blank">Johnny Beirne</a></p>
<p>But I think I&#8217;m needed right now for shopping duties&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeafford.com/blog/2008/10/my-customised-blog-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tinkering with WordPress themes</title>
		<link>http://www.mikeafford.com/blog/2008/10/tinkering-with-wordpress-themes/</link>
		<comments>http://www.mikeafford.com/blog/2008/10/tinkering-with-wordpress-themes/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 14:08:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[blogs]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[customising]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mikeafford.com/blog/?p=32</guid>
		<description><![CDATA[OK, in order to work out how WordPress sites are put together, I&#8217;m going to have to put on my Graphic Design Geek hat. (Yes I have one of those. It&#8217;s a black beret, by the way.)
I&#8217;m intending to blog about the changes I&#8217;m making as I go along. There are two possible outcomes here [...]]]></description>
			<content:encoded><![CDATA[<p>OK, in order to work out how WordPress sites are put together, I&#8217;m going to have to put on my Graphic Design Geek hat. (Yes I have one of those. It&#8217;s a black beret, by the way.)</p>
<p>I&#8217;m intending to blog about the changes I&#8217;m making as I go along.<span id="more-32"></span> There are two possible outcomes here :</p>
<p><strong>1. This may serve as a useful resource for anyone else attempting to customise their own blog.</strong></p>
<p>or</p>
<p><strong>2. This will be a catalogue of disasters, showing how to mess things up royally.</strong></p>
<p>Obviously, I hope it&#8217;s not going to be (2) &#8211; but if by any chance you happen to be reading this and can spot disaster looming &#8211; please feel free to comment and point me back in the right direction!</p>
<p>As it stands, having spent about 2 minutes looking at the Design &gt; Theme Editor tab I&#8217;m thinking this is the way to go. I&#8217;ll make a complete copy of the themes/default directory on my hard drive just in case I mess anything up. If I do, I should be able to selectively replace either the messed up style sheet, image, or (god forbid) php file.</p>
<p>By the way, I&#8217;ve recently been working on optimising my main website. Currently I&#8217;ve only replaced a couple of pages, but I have managed to create a pretty well-formed HTML template, and a style sheet that seems to render it identically on most browsers (according to the excellent <a href="http://browsershots.org" target="_blank">Browsershots.org</a>). So I&#8217;m hoping that with a bit of sly CSS cut&#8217;n'pasting, I should be able to impose my style on the default WordPress template &#8211; which also uses a basic two-column layout like my main site. Anyway, here goes. I think maybe the first thing to do is to change pixel dimensions only, and leave fonts, colors and images until later.</p>
<p>I&#8217;ve a good few years&#8217; experience hand-coding HTML and CSS. I&#8217;ve got a pukka copy of the Adobe CS3 suite. I&#8217;ve got the O&#8217;Reilly book &#8216;Learning PHP &amp; MySQL&#8217; (I knew it might come in handy one day). I&#8217;ve got &#8216;The Convincer&#8217; by Nick Lowe on repeat.</p>
<p>What could possibly go wrong? <img src='http://www.mikeafford.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeafford.com/blog/2008/10/tinkering-with-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
