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.
Featured Content
WordPress Function: is_page_or_descendant()
November 4th, 2010
2 Comments
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.
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.
WordPress: Add the <hr> button to the Visual Editor (TinyMCE)
October 18th, 2010
12 Comments
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.
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.
CSS: Style your <hr> tags with a background image
October 14th, 2010
7 Comments
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.
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.
Magento: Enable Terms & Conditions checkbox at Checkout
October 12th, 2010
6 Comments
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.
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.