Tag Archives: wordpress

Rowan Wilson PHP Freelancer

I’m now officially freelance working as a web developer. Primary focus is PHP, but I’m happy taking on Ruby, Python or Perl projects when required.

I’m available for Contract and freelance development positions in and around the Cheshire area and Manchester city centre. I’m also available from the comfort of my own desk for global development projects.

New site is: www.rowanwilson.co.uk
Support Tickets: www.rowanwilson.co.uk/support
Invoicing: www.rowanwilson.co.uk/pca

Update, I didn’t see the reason for maintaining two separate domains, so I’ve redirected www.rowanwilson.co.uk to this blog.

Thanks

styling the site name in wordpress

If you need to add a style to each of the words in the site name or any WordPress element that’s get generated by a WordPress function, this little snippet will do the job:

<?php $completeName = get_bloginfo('name');
$nameParts = explode(" ", $completeName);
echo '<a href="' . home_url() . '"rel="nofollow"><h1><span>' . $nameParts[0]. '</span>' . ' ' . $nameParts[1] . '</h1></a>';
?>

You’ll need to add more elements from the array depending on how many words there are. I’m styling the first word with a span in the CSS.