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

10 Wordpress Snippets To Get Your Blog Stats

If you have a blog then most likely you would like to know the stats for your blog, such as number of posts, pages, comments, categories, tags etc. All this data is recorded on the Wordpress database...

Highlight Posts In A Certain Category In Wordpress

Every website has a main subject, something the website is focused on. For example this site is focused on web development tutorials. As there is a focus point is always better to try to highlight th...

How To Create Pretty Search Forms

In this tutorial we are going to style text boxes and buttons to create pretty search forms. We are going to create three forms which will match the image above. The three styles are dark grey, light...

CSS3 Buttons With Pseudo Classes

Pseudo classes are bolted on to selectors to specify a state or relation to the selector. They take the form of selector:pseudo class { property: value; }, simply with a colon in between the selector...

Check If On Front Page In Wordpress

In Wordpress you can define a different page to be used as the front page for your blog. It doesn't have to be the index.php page it can be any page template used on your Wordpress blog. You can use a...

How To Build A Simple Tabbed Menu

In this tutorial we are going to take a PSD and turn them into HTML and CSS. I previously done this with other tutorials such as building a CSS pricing table. In this tutorial you will learn how you c...

Get Select Box Value With jQuery

Use the following jQuery snippet to get the value of the selected option in the select box. First create a new jQuery function function getSelectedOption(id){ $('#' + id).val(); } Then create y...

How To Register A Sidebar In Wordpress

In this tutorial we will learn how you can register a new Sidebar for your Wordpress blog. The best part about Wordpress sidebars is that you can use them to add Widgets to your page. To register a s...

How To Turn On Debug Messages For Wordpress

By default Wordpress will turn off all debugging messages so the visitor to the site can't see any error messages showing anything wrong with the code. If you do any Wordpress development such as new...

12 Annoying jQuery Functions

You will always come across websites that add some code in to try and stop you from doing things on there website, but the things they are trying to stop you doing are standard activities you would n...

Create A Weather Application With Google API Using PHP

As of August 2013 Google shut down it's weather API. The following tutorial will not work with the Google weather API but you can use the following code for another weather API that you find. ![Wea...

HTML5 Details Tag

In past articles I have wrote about some of the new features which have come with HTML5. We have gone over some of new features with HTML5 forms and HTML5 placeholders. In todays tutorial we are goin...

What Makes A Premium Wordpress Theme Premium?

Recently I've been doing a lot of work with Wordpress, developing plugins and developing themes. I've looked into some of the top Wordpress premium themes to see how they work and what makes them dif...