Create Wordpress Database Error Page

In today's tutorial we are going to learn how you can display a page on your Wordpress install if your website has a database error. Wordpress Files In Wordpress it has a couple of default file names...

How To Disable Enter Key On Forms

On HTML forms if you are filling out a text box and press the enter key it will submit the form, even if you haven't finished filling in the rest of the information. There are many websites which use...

Replace jQuery With CDN In Wordpress

Here is a snippet which allows you to load jQuery from the Google CDN in Wordpress. jQuery is a very popular Javascript framework which can do some very powerful things and makes it very to add Javas...

Use PHP To Detect An Ajax Request

Here is a quick PHP snippet that you can use to tell if the request coming to the page is from a form or from an Ajax request. Where a page is being accessed by AJAX it will post data using XML, PHP c...

Redirect Wordpress Commenters To A Thank You Page

If you have your own blog you will know important it is to have people comment on it. There are many things you can do to encourage people to comment on your blog. You can have do follow links in your...

CSS Image Reflection With Webkit

Image reflection is a great new feature from CSS which allows you to spice up your web image by adding a reflection underneath. Before CSS this had to be done by adding the reflection in the images, b...

Learn How To Create Drop Cap Letters In CSS

In the tutorial today we are going to learn how we can use just CSS to create an old newspaper technique of making the first letter of a paragraph capital and drop into the paragraph. View the demo t...

How To Work Out Distance Between Mouse And Element

In the tutorial today you will learn how you can use jQuery to get the distance of the mouse from a certain element on the page. This bit of code can be useful on a small web app which has a lot of u...

How To Display A Message If Javascript Is Turned Off

Having an accessible website is very important it means that you are not neglecting any potential customers coming on to your site and being able to use it correctly. But what do you do when the visi...

How To Check Number Is Odd Or Even

Here is a quick little snippet which can prove to be quite useful. This snippet will check to see if a number is odd or even. ## In Javascript function checkEven(val){ return (val%2 == 0); } v...

Get Url Sections In Javascript

Even though most of the time to get information from the page URL you will use the server side programming language, you can actually use Javascript to get the different sections that make up the URL...

How To 301 Redirect With PHP

Search engines index pages by the URL of the page, if these pages are moved to a different URL then the search engines will have indexed a page that no longer exists. Therefore people search in the s...

How To Create Stitched Look in CSS

The current trend in web design is textures with vintage design. One of the main aspects of this design is the use of stitches in your design, this used to have to be done using an image but thanks to...

Fallback on Local jQuery If CDN Fails

Many big websites are now offering CDN services for things like jQuery. Google offers a few of the biggest Javascript libraries from their own CDN network. Microsoft also allows you to use a CDN to i...

Create Pulse Effect With CSS3 Animation

In this tutorial you will learn how you can create a heartbeat pulse effect with CSS3. CSS3 gives us some added ability to CSS animation, with animation you can set key frame points to animate to. Th...