How to add a favicon

Ever wondered how you add a favicon to your site? Here’s how (this applies specifically to WordPress because that’s what I’m learning at present but the essentials of each step are the same for a more traditional site where you would have specific pages instead of templates etc).

1. Create your icon

1. For me this is the hardest part because I’m not particularly gifted in the artistic department. Find an image you want to use or make use of an icon file that you already have. If you’re using an existing image in any format other than .ico you will need to find a way of converting it from the graphics format (.gif, .jpeg, .png etc) to the icon format (.ico). My weapon of choice for this (and for icon creation in general is icon sushi though you can use a plugin for Photoshop etc).

NOTE: make sure you’re OK with the copyright on any image you’re using for your favicon – it’s not smart to use copyright material from other people unless you’re given permission. Find non-copyright material or better still, just create something for yourself, give your site a nice personal feel. if you’re doing a branded site (corporate client etc) they should be able to provide logos etc that you can convert into favicon.ico

2. Size your icon to 16 x 16px – quite small but ideal for the address bar in your browser.

3. Save your new icon on your local hard disc with the name “favicon” and ensure that the extension is .ico so you have “favicon.ico”.

2. Upload the icon

4. Now you have your favicon.ico ready it’s time to upload it to your webserver using whatever method you normally use (I use Filezilla).

5. Upload the favicon.ico file into the main folder of the theme you’re using. If you’re using a child theme upload it into the root of your child theme folder.

6. Upload another copy of the favicon.ico file to the root directory of your site (ie. http://yoursite.tld/favicon.ico). Doing this will ensure the favicon is displayed in your RSS feed.

3. Link in the favicon.ico file

7. Nearly there. Using whatever method you normally use to edit your theme files amend the header.php file as follows:

(a) Search for the line of code that begins with:

<link rel="shortcut icon" and ends with /favicon.ico" />. 

(b) Overwrite it, if it exists, or add the following code below the “head” HTML tag if the code doesn’t exist:

<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" />

4. Empty Browser Cache

8. Flush out your browser cache and reload your webpage – your favicon should be smiling from up there on the address bar :-)

[ratings]

Add RSS Subscription Icons to the Twenty Eleven Theme

I wanted to add RSS subscription icons to the Twenty Eleven theme I’m playing with at present (using a child theme of course!). These are the steps I went through.

HTML Changes

1. If you haven’t already made changes to the header.php file in your theme copy the original header.php file from the Twenty Eleven theme folder to your child theme folder.
2. Within the header.php folder you need to add new HTML to create the structure that will hold your RSS subscription information. I chose to add 3 new div tags after the end header tag of the standard file as follows:

	</header><!-- #branding --> *** This is the end of the <header> tag in the original file, use it as a marker ***

        <!-- Start RSS Feed holding div- this added by me-->
               <div id="rssfeed">
                   <div id="postsrss">
                      <a href="http://feeds.feedburner.com/yourfeed"><p>RSS Posts:<img src="/wp-content/themes/child2011/images/posts-rss.png" width="24" height="24"></p></a>
                   </div>
                   <div id="commentsrss">
                      <a href="http://feeds.feedburner.com/yourfeed"><p>RSS Comments:<img src="/wp-content/themes/child2011/images/commentsrss.png" width="24" height="24"> </p></a>
                   </div>
               </div>
         <!-- End RSS Feed holding div-->    

<div id="main"> *** This is from the original file, use it as a marker ***

4. In this code the “postrss” div will contain the subscription icon for the posts and the “commentsrss” div will contain the subscription icon for the comments. I enclosed both of these divs in a container div called “rssfeed” (for styling, layout control etc.
5. In the links above I’ve used feedburner addresses, if you don’t use feedburner just substitute your own addresses.
6. This structure could be expanded to include an email subscription with a form in it etc.

CSS Changes

1. Now we have to add CSS rules to the style.css file in the child theme folder to style the 3 divs added above “rssfeed”, “postrss” and “commentsrss”
2. I wanted the subscription icons to be at the right hand side of my page just under the navigation menu so I floated the containing div (“rssfeed”) left and floated the two remaining divs “postrss” and “commentsrss” right.
3. I had to add suitable padding, margins and styling on the tags to achieve the results I wanted and you will have to do the same. Hopefully you can adapt the CSS I used to meet your particular needs. Here’s my CSS:

/*Style RSS feed div*/
#rssfeed {
	float:left;
	width:100%;
	margin:0;
	padding:0;
}
#postsrss {
	float:right;
	padding:0 10px 0 10px;
}
#postsrss p img {
	margin-left:10px !important;
}
#postsrss p {
	margin:0 !important;
	padding:0 !important;
	color:#FB9E3A;
}
#postrss a, #postrss a:focus, #postrss a:active, #postrss a:hover {
	color:#FB9E3A !important;
}
#commentsrss {
	float:right;
	padding:0 10px 0 10px;
	border-right:1px solid #666;
}
#commentsrss p img {
	margin-left:10px !important;
}
#commentsrss p {
	margin:0 !important;
	padding:0 !important;
	color:#0562C5;
}

4. The !important declarations at the end of some of the lines is to ensure that these rules take priority in the cascade (the “C” in CSS).
5. That’s pretty much it. Hopefully it makes sense. It’s still not quite there – for example I want to remove the underline on the RSS links when I hover over them, currently the underline still appears.
6. you can see the results of this on this site at the top.

Hopefully this will be of some use to you if, like me, you want to explicitly add RSS subscription icons to the Twenty eleven theme somewhere of your choosing and not be limited to a widget for the sidebar or footer. get in touch if you have any questions or suggestions on how I can improve this – I’m no expert with either HTML, PHP or CSS and I’m certain some of what I’ve done can be improved especially in the CSS :-)

Driving to Grimspound

This is a short driving sequence filmed while driving on Dartmoor. The video was shot on an iPhone and posted here to see how that looks and develop a sleek process for posting videos from the iPhone quickly and easily using minimal fuss and additional technology.

It’s also a memory of a great day

Paul Weller Guitar Tabs

Featured

I’m not an accomplished musician but I’m a very keen trier :-)

Along the way I’ve been helped by many talented and creative people who have given up time to share the love with beginners like me. In particular, two names crop up in connection with guitar tab for Paul Weller songs – the first one is “Dodger” (username on the Paul Weller forum at http://www.paulweller.com ) and the other is the older and long gone “Paul Weller Guitar Archive” from Christian Korbanka.

Dodger has created several amazing collections of tabs covering Pauls music (including some great original artwork) and made them available free of charge. I believe at one time he planned releasing the latest one as a commercial venture but that didn’t get off the ground (not sure why). Some people on the fora at http://www.paulweller.com were having problems getting hold of accurate tabs and I offered to email them to anyone who was interested. That worked quite well but wasn’t very efficient so I’ve decided to post them here for download by anyone who wants them. I’ve listed them below – just click the link and you can download them to your local drive, they’re all in PDF format. Happy playing – and remember, credit the original authors not me, I’m just trying to help ensure such amazing work gets out there and the guys get the credit they deserve.

Guitar Chord Sequences

Key Chords web based applicationIf you play guitar, or you’re trying to learn and you’re anything at all like me, you will sometimes find yourself tied down, bored, fed up, frustrated and just despondent with messing around on the fretboard.

This usually happens to me when I’m trying to find new and interesting chord progressions but my fingers keep getting in the way by just repeating the same old sequences I know or am familiar with. This is partly caused by my own lack of familiarity with a broad range of chord sounds and what works well together (no formal musical training) and not necessarily knowing the chord shapes to try. This usually ends up with the same few chords cycled around in different sequences and, naturally enough, all sound the same or very similar which gets very boring very quickly.

I’ve spotted a web based application that helps with this situation by giving you a chance to put the guitar down and focus on the chord progressions instead. The application is called “Key Chords” and has been developed by Mike Gieson. It lets you select a key along with timing (strumming pattern, beats per minute etc) and then drop chords for the chosen key into a timeline. the app plays the chord progression back to you in line with the chosen timing and strumming pattern.

Key Chords also has a feature called “Roll the Dice” where you can let the application choose sequences for you. You can run through multiple choices of chords and strumming patterns until you find something that works for you or creates that little something that gets you moving.

This isn’t a tool for composing nor is it intended to be, but it’s a great little tool for informally playing around with ideas and maybe generating some new ones – I think so anyway, and it’s free to use. I also find it’s helping me learn new chords and the relationships beteen them better by actually doing something.

The electronic sound isn’t great but it’s not really intended to be a professional music tool – just the musical equivalent of a sketch pad to capture early “doodles” and sketches.

You can use it by visitng: http://www.drumbot.com/projects/key_chords/

In addition it’s available as an iPhone app which I’ve bought and find quite useful for messing about on when I’ve got some time to kill – you will need earphones though as it’s not the most melodic sound to be subjecting fellow passengers to etc :-)

Making a Child Theme in WordPress

Aside

If you’re getting into tinkering with your installed theme, maybe interested in customising it a little (or a lot), maybe interested in developing your own WordPress Theme for personal use or for more general release it’s essential to develop a discipline around your work and avoid hacking core theme files for various reasons (the main ones that convinced me are: (a) you lose EVERYTHING when your theme is updated and (b) you can SERIOUSLY screw things up and effectively lock yourself out). The generally accepted way of doing this for theme development/tweaking/customisation is to use a “child theme”.

A child theme is a simple enough concept and is described in varying levels of detail in the following 3 references which I strongly recommend you read if you can:

Theme Development section in the Codex: http://codex.wordpress.org/Theme_Development

Child Theme section in Codex: http://codex.wordpress.org/Child_Themes

Step by step “How To” by Op111: http://op111.net/53/

Added Links to Menu

Status

Jut finished adding a links page to the main menu – happy with the result though will add some styling rules to the categories. Add links to the current NASA mission homepages that are of interest to me – this will provide a handy quick reference source for each mission.