Tutorials

This tutorial will teach you how to create a nested drop-down menu. There are two ways to do this; you can use JavaScript or CSS. This tutorial will use the CSS method because it is easier to create. HTML Code For the HTML, all you need is a nested list. Home About Us Products Locations Contact Us Services Economy First Class Business Cargo Hold Blog CSS Code The CSS code is very simple.

Posted by in HTML/CSS

I haven't updated my tutorials in a while because I got a new job! They're very Drupal oriented so I've had to learn how to create themes. What files do you need? You only need two files for the theme to work. page.tpl.php and a *.info file. The filename of the *.info should be the same name as your theme.

Posted by in PHP

Today's lesson will be on the difference between multiple equal signs in your comparisons. One equal sign is assignment, two is content comparison, three is content and type comparison. Whats the difference between two equal signs and three? Let's do a simple test to find out. $string = '123'; $integer = 123; // Two equal signs comparison // Answer is that it does match if ($string == $integer) { echo 'Two equal signs match.

Posted by in PHP

Today's tutorial will teach you how to filter strings. I'm a big supporter for freedom of speech but one man's joke is another man's insult. Sometimes you have to filter out offensive or dangerous content. How do you filter content? Well, you could do a str_replace for every word you want to filter, or you could put it all into an array.

Posted by in PHP

Today I'll teach you how to create a custom WordPress theme from scratch. Why would you do this when there are so many themes out there? Challenge, efficiency, or the fact that stuff that's mainstreamed for everybody isn't tailered for you. The Essential Files A WordPress theme requires a minimum of two files, but usually has at least five.

Posted by in PHP