Block Wordpress Admin By IP

Wordpress security is a massive problem, because of Wordpress being such a popular blogging platform it is used by millions of sites around the world. If someone is able to get access to your Admin ar...

Use jQuery To Highlight Active Menu Item

If you are using menus on your web designs it's a common web design technique to highlight the current page that you are on to show you where you are on the site. This technique is normally done by ad...

Add An Edit Link On Wordpress Posts

On my Wordpress themes I always link to have an edit link at the top of the posts by the title so that if I spot a mistake with the post I can easily edit it quickly. Here is a Wordpress snippet to us...

Send Email To Wordpress Author On Post Publish

Here is a great Wordpress snippet for multi author blogs. This will automatically send an email to the author of the post once it has been published. It uses the Wordpress action of publish_post which...

Disable All Wordpress Plugins

There are some times in Wordpress development when you need to disable all Wordpress plugins to proceed with your development. An example of this is setting up a multisite blog network on one Wordpres...

Get First X Number Of Elements With jQuery

Here is a quick snippet for getting the first lot of elements from a jQuery object. Lets say you want to get the first 5 paragraphs on a page then you will start off by getting all the paragraphs on t...

Learn How To Create Different CSS Box Shadow Effects

In this tutorial we are going to learn how to use the CSS box shadow property to create different effects with just CSS. Below is an image created in photoshop of different box shadows effects. These...

How To Use HTML5 GeoLocation API With Google Maps

In this tutorial we are going to learn how to use the Geolocation API to get your current latitude and longitude, from these results we can then connect to the Google Maps API to display your location...

How To Use The jQuery Load Method

In today's tutorial we are going to learn how to create a small web application that will display an RSS feed on a web page using jQuery and PHP. To do this we are going to use jQuery AJAX functionali...

Wordpress Blog Info Function

If you are a Wordpress theme/plugin developer then there will be times when you need to get information about the current blog such as blog title or blog url. Using this function you will be able to g...

Collection Of CSS Resets

Now with the difference in the multiple browsers that are being used we need to a way of trying to standardise them so we have a chance of creating a consistent design for each of the browsers. There...

How To Create A CSS Slide Out Fixed Navigation

In today's tutorial we are going to learn how we can make it easy for your visitors to always have access to the main links on your site by creating a fixed position main navigation. But what we are g...

Easily Create A Table In PHP

Here is a small PHP snippet to easily create a table in PHP. First create the draw_table function.

Blacklist IP Addresses With htaccess

Here is a good snippet to add to your htaccess file to completely block spammers from your site. If you have a Wordpress site you could get a lot of spam comments, it can take up a lot of time of your...

CSS Clearing Floats Snippet

Sometimes with float-based layouts you get to points where you need to clear the floats to get the desired layout you need. An element that has the clear property set will not move up next to the floa...