How To Use CSS :nth-child

There is a CSS selector which allows you to select the exactly item that you want from a list. This selector is the :nth-child selector, in this tutorial you will learn what you can do with the :nth-c...

Files Needed To Create A Wordpress Theme

What Makes Up A Wordpress Theme So I decided to build my own wordpress theme for this blog. The main reason for this is so I can make it exactly how I want it and in the future I can change it to exac...

PHP Password Generator Snippet

Get stuck trying to pick a new password each time you signup to a new service or website. Most people do use the same password on every site that they go to but this can be dangerous if 1 site gets ha...

Change style depending on User Browser in Wordpress

In wordpress it is possible to change the body tag class to something depending on the browser the user is on. This is done by using a hook with a filter to add extra classes to the array for the body...

Regular Expression To Validate Email Address

The follow snippet is a function I use to validate email addresses. It is a very simple function which uses a regular expression pattern match to test if a email is of a correct format. Valid Email Fo...

Add Custom Favicon To Your Wordpress Blog

A favicon (short for ‘favorites icon’), are little icons associated with a particular website shown next to the site’s name in the URL bar of most browsers. This will also appear in the tabs of the br...

Enable Threaded Comments in WordPress

Threaded comments is a nice feature to highlight to your visitors the admin comments or reply comments this enables better readability of the comments section of your blog posts. There are plugins whi...

WordPress Change Excerpt Length

In WordPress you can apply a excerpt to blog posts to give a preview of the post which is most likely used on category or search pages. The default for this is 250 characters but you can you can chang...

Process Each Node Of XML In JQuery

JQuery is a very useful tool to use to loop through elements, this is because of the each function. It will loop through each of the elements it has in the jQuery object, this can be a HTML dom elemen...

Force www With htaccess

For SEO it is important to use a set standard of how you present your domain. The most popular approach is to use the sub-domain www. Many people don't know this but http://www.domain.com is the same...

Using a Gif and CSS on Large Images

## What? Using CSS you can put an image as the background image of any images on your web site. Sounds confusing but a image is just a normal HTML DOM element, which means you can add the same CSS a...

CSS Rounded Corners

CSS allows you to add border to your elements but they are purely just straight lines and right angle corners, which doesn’t always look the best on websites so what people used to do is cr...

Background Colour Gradients in CSS

CSS allows you to create a background colour gradient on any element. Allowing the background colour to change colour from beginning of the element to the end. This increases readability on...

Transparency using CSS3

What? Using a new feature with CSS you can set a transparency to any element on the your website. This can be a div or a paragraph, which can be useful to use when you have a text with a background co...

Hide Header1 Text if using Logo Image

What? A website logo is normally an image made up to brand the company. But this is not the best way in terms of SEO as it will expect text. Use CSS to place the logo as an image background on the h1...