[ Tag Archive ]


Using jQuery to make an Expandable Code Box for WP-Syntax

Posted on November 2, 2009  |  Category: Tutorials

You may have noticed that I’m using a new syntax highlighter for my code snippets. I installed Ryan McGeary’s WordPress plugin WP-Syntax which uses GeSHi (Generic Syntax Highlighter), a simple highlighting class that supports multiple coding languages. It’s great but I’m not a fan of the horizontal scrollbar that appears if code extends past your site’s width. Instead, I decided to use jQuery to expand the box when you hover over it.

Read More »


Remove the WordPress Generator

Posted on August 10, 2009  |  Category: Tutorials

WordPress automatically places a line of text between your <head> tags which states the version you currently have installed. I have read that it is there for statistical reasons which is all fine and dandy, but sometimes showing off which version of WP you are using lets hackers know exactly what vulnerabilities your site has.

For security reasons, I suggest removing the generator, and doing so only takes one line of code.

Read More »


How to Use the Important Declaration in CSS

Posted on August 4, 2009  |  Category: Tutorials

Sometimes when you are messing around with CSS, you can’t figure out why certain styles won’t stick. Most of the time, it’s because you are obviously doing something wrong, but other times you might just be missing the fact that your CSS is being overwritten somewhere else down the line. Remember, CSS stands for Cascading Style Sheets, so styles you set further down will overwrite styles that are above.

Read More »