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...

25 Quick SEO Tips Every Website Should Follow

SEO (Search Engine Optimization) is not a quick process or a guaranteed process and if anyone else tells you anything else they are lying. No Search Engine Optimization expert can guarantee you number...

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...

Text Shadow in CSS3

Apply a shadow to any text in any direction using any color in pure CSS. ## Why? Before CSS3 the only way to add a shadow to text on a web page is to create an image using software such as Photo...

Force download of files in PHP

If you have files on your website that you want people to download you need to change the code to allow the browser to automatically download the file. This is because if you had an image on your webs...

Compress multiple CSS Files

If you are using multiple CSS files on a large website sometimes they can take along time to long the best way to deal with this is to compress the CSS by removing all comments and spaces in the file....

Convert Seconds to Time in PHP

Here is useful function to convert seconds to a time either years, months, days or hours. function Sec2Time($time){ if(is_numeric($time)){ $value = array( "years" => 0, "days" =&am...

Calculate distances in PHP

Here is a code snippet which allows you to calculate the distance between longitude and latitudes in either miles, kilometres or nautical miles. function distance($lat1, $lon1, $lat2, $lon2, $unit) {...

Easily cache pages with PHP

If you are not using a CMS or a framework you may need to cache your pages to speed up the page loading times. This can easily be done in PHP using the ob functions. OB Function In PHP ob_start() ob_...