Resources & Tutorials for Web Professionals

How to show random quotes in WordPress

Someone recently asked me to add some testimonials to their website. They had a collection of quotes from their customers and wanted one to be displayed on each page at random. Although this post it titled how to show random ‘quotes’ in WordPress the concept can be applied to pretty much anything and is not limited to quotes. It also not limited to WordPress as we’re just going to be using some simple PHP.

continue reading...

Using PHP to change images according to the date

We’re going to display a different image depending on the current date. We might want to do this if say we want to have our standard header image change to a different header image for Christmas, another one for valentines day and maybe another one for weekends.

continue reading...

Drawing triangles with CSS

Our last drawing shapes tutorial was how to draw a circle with CSS 3. We’re going to build on that now with a quick tutorial on how to draw a triangle.

continue reading...

How to draw a circle using CSS 3

The border radius property in CSS 3 is not only useful for making curved corners and borders without images or javascript. It can also be used to do a bit of basic drawing.

In this short tutorial we’ll look at how you can use border-radius to draw a simple circle.

continue reading...

Commenting in CSS, HTML and PHP

Well commented code can be a beautiful thing. Especially if you are working on something that you didn’t do yourself or wrote some time ago.

In this article we will look at the commenting syntax for 3 of the most common and essential languages in web development, CSS, HTML & PHP.

continue reading...