WordPress Development

WordPress: Assign custom CSS classes with the Visual Editor (TinyMCE)

As a WordPress theme developer, it’s very useful to be able to define CSS classes in a theme’s stylesheet, then allow them to be assigned to elements by the user with the Visual editor. Classic examples would be special classes to style links, lists and images.

Read More »


WordPress: Specify a different version of jQuery with wp_enqueue_script()

I find using the wp_enqueue_script function a nice tidy way to include javascript files in my theme. Especially when using scripts that come bundled with WordPress, such as jQuery, script.aculo.us, etc. However I recently had an issue with the very cool Fancybox jQuery plugin not playing nice with the version of jQuery that shipped with WordPress. Here’s the solution.

Read More »


WordPress Function: is_page_or_descendant()

Here’s a handy little function to check if the page you’re currently viewing is a specific page or a descendant of it (child, grandchild, etc). I’ve come across a few simliar functions: is_child(), is_subpage(), is_descendant(), etc; but none that met my needs exactly.

Read More »


WordPress: Add the <hr> button to the Visual Editor (TinyMCE)

Strangely, the <hr> tag (horizontal rule) button isn’t enabled by default in the WordPress Visual Editor (TinyMCE). Here’s how to turn it on, along with any other buttons you want to use.

Read More »


WordPress Security Tip: Remove Generator Meta Tag (wp_generator)

Sometimes when a security hole is found in WordPress, the cyber-baddies will target specific versions of WordPress that are vulnerable to the exploit. There’s no easier way for them to see which version a site is running, than by looking for the “generator” meta tag, which is added by the wp_head() function.

Read More »


Page 1 of 212