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.
Author Archive
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.
Linux tip: Mirror a website with one easy command (wget)
October 9th, 2010
Comments Off on Linux tip: Mirror a website with one easy command (wget)
I often find myself having to setup a static copy of a website. If I have command line access to the host then it’s simple enough to tar up the filesystem and database, but if I only have web access then this little gem saves me a lot of time.
I often find myself having to setup a static copy of a website. If I have command line access to the host then it’s simple enough to tar up the filesystem and database, but if I only have web access then this little gem saves me a lot of time.