jQuery: Smooth Scrolling Internal Anchor Links

Here’s a neat little jQuery trick to fancy up your internal anchor links, by making them scroll smoothly to their target as opposed to jumping instantly.

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 »


CSS: Style your <hr> tags with a background image

I find <hr> (horizontal rule) tags to be a nice semantic way to separate or break up content on a page. To give them some style, you can replace them with a nice background image.

Read More »


Magento: Enable Terms & Conditions checkbox at Checkout

A very common requirement for online shop owners is to force the customer to accept their terms and conditions before placing an order. When a client requested this recently, I was happy to find that Magento has this functionality built in, meaning time saved and no custom coding. It just requires some setting up in the admin, here’s how.

Read More »