Toby's Development Blog Just another PHP / Javascript Developer

19May/100

Gotta love the google font API

I had read some tweets earlier today about the Google Font API and thought I would check it out.

Normally the way these things go down is I view the demos and have every intention of trying it myself but there are usually just a couple too many steps involved for the time I have allotted to dicking around the interwebs but this was so quick and so straight forward that I have eliminated cufon from this site in about 5 minutes.

Here are the steps I used;

  1. Follow the link above.
  2. Click on the font you want.
  3. Click get the code.
  4. Copy and paste the link into the head of your page.
  5. Update your CSS with a copy/paste.
  6. Done! (well, I also had to jump onto Wordpress and turn off Cufon in a settings page, but that is specific to my template.)

I am not a designer so I don't really know if those fonts are any good or not from a design point of view, but the potential for breaking away from the standard websafe fonts is huge!

  • Digg
  • Delicious
  • Facebook
  • Reddit
  • Ping
  • Twitter
  • Share/Save/Bookmark
Tagged as: , No Comments
27Nov/090

Adding jQuery to Wordpress

Adding jQuery to WordpressFor my last post (talking about a really cool jQuery plugin) I really wanted to display the talked about effect on the site, not least because I wanted to play about with it some!

In order to do that I had to make some changes to my theme, which I figured I should document.

I went into my theme directory and created /js/themename.js

I edited the header (themename/header.php) to include jQuery and /js/themename.js...

<script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.3.2.min.js" type="text/javascript" ></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/lightword.js" type="text/javascript" ></script>

Inside of themename.js I created my $(document).ready() call and gave it the code it required.

I uploaded /themename/header.php, /themename/js/themename.js and themename/js/jquery-1.3.2.min.js to the site.

That is it!

  • Digg
  • Delicious
  • Facebook
  • Reddit
  • Ping
  • Twitter
  • Share/Save/Bookmark
13Sep/090

Wordpress Cheat Sheet

I found this sheet last night and have already made use of it.  This PDF document lists all of the common Wordpress functions and whilst it isn't as comprehensive as it could be it is certainly a handy thing to have about when a function name is on the tip of your tongue!

Download the cheat sheet from Ekin Ertac.

  • Digg
  • Delicious
  • Facebook
  • Reddit
  • Ping
  • Twitter
  • Share/Save/Bookmark
10Aug/090

A/B Testing with Wordpress

Here is an excellent video from Ryan Carson on how to quickly set up and start using an A/B Testing plugin for Wordpress.

How to do A/B Testing with WordPress from Carsonified on Vimeo.

The importance of A/B testing really can't be overstated enough, it is one of those things that you really don't think has the type of effects that other people talk about until you try it yourself. And with tools like this making it stupidly easy to do this kind of testing there is really no excuse.

  • Digg
  • Delicious
  • Facebook
  • Reddit
  • Ping
  • Twitter
  • Share/Save/Bookmark
29Jun/090

Out of the box design

Before setting up this blog I had spent a fair amount of time mulling over how I should style this blog.  The three options are obvious;

  1. Create a style from scratch
  2. Use a free theme and heavily modify it
  3. Just use a free theme

I thought I would take some time put my thought process on paper and share it with you.

  • Create a style from scratch

Creating a style from scratch is easily the hardest one to complete, however potentially the most rewarding.  You could really get your teeth into the code that Wordpress uses and you could really push the boat out with bells and whistles.  At the very start I thought this was the road I wanted to go down.  I have been under the hood of Wordpress many times making both small cosmetic and functional changes, but I have never had to sit down with any part of it from scratch and work my way up, and I thought this would be an excellent challenge.

The main thing that stopped me from doing this was creative ability and the need to get something up and running quickly.  I am not a graphics designer, it is something I am trying to improve upon but at the moment I only have the most basic knowledge of what makes a good design.  I didn't think it would be fair on my 3 readers to have them endure endless changes to the layout whilst my technique improved.

  • Use a free theme and heavily modify it

I have seen this being done a lot and with very mixed results.  I dismissed this out of hand because I think in the time it takes to heavily modify a theme (by which I mean change it enough so as to make it your own) then I think you may as well of started from scratch, it seems fairly lazy in my opinion to take the foundations of what someone has made then chop and change it to suit yourself.

  • Just use a free theme

This is most definitely the laziest option, however it is also the one I went for and the one I am going to defend (not that I feel I really need to!) here.

Using a free theme has many advantages; you can install it and have it set up in literally a couple of minutes, all the browser testing as (hopefully) already been completed, you can get all the benefits of have a good designer work on your site but without any associated costs.

It also has a couple of disadvantages; You learn nothing, you end up with a site that is bound to look like at least 100 others.

I am going to sidestep the learning nothing issue by promising myself that I will be making my own design from scratch someday.

I am going to do a couple of things regarding the fact my site will look the same as others, the first is that I plan to make minor changes, whilst overall I am happy with the theme there are a couple of small things I want to change.  I don't think this counts in any way as heavily modifying the site and it will stay true to what the original designer had in mind for it.  The second thing I am going to do about this disadvantage is point out that this is a lovely theme and there are at least 100 other blogs that look damn fine!

Did I make the right choice? Let me know in the comments!

  • Digg
  • Delicious
  • Facebook
  • Reddit
  • Ping
  • Twitter
  • Share/Save/Bookmark

Hello

I am a PHP and JavaScript developer who works for Team Solutionz.

This website is what I use to talk about things most of my friends don't want me to talk about to them! For some reason they find coding alien and boring... I have strange friends.

Subscribe via RSS

New Posts

Old Posts

Categories

Links

Other Links

Sign Up and Comment!

What I talk about