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. Internal anchor links are very common place,...
View ArticleWordPress: 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,...
View ArticleWordPress: 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...
View ArticleMagento Tip: Setting Up Cron (Scheduled Tasks)
Magento has it’s own cron (scheduled tasks) system which handles such things as newsletter sends, sitemap generation and database log cleaning. To activate this system, you need to set up a cron job on...
View ArticleMagento Performance Boost: Cleanup Old Session Files
If left unchecked, Magento session files can grow out of control and have a negative impact on your sites performance (aswell as taking up storage space). This article explains how to make sure old...
View ArticleMagento Performance Boost: Enable Log Cleaning
Magento stores a lot of logging information in the database tables prefixed with log_ e.g. log_visitor_info, log_url_info, etc. As with Magento’s session files, if not handled properly, these tables...
View ArticleMerge AVI files in Debian Linux
Here’s a nice quick way to merge 2 or more AVI files into 1. Add Debian Multimedia to your sources list vi /etc/apt/sources.list I’m currently using Squeeze – change to your distro as necessary deb...
View ArticleWordPress Command Line Database Upgrade
If you’re like me and manage dozens of WordPress sites, you’ve probably got a shared code base which allows you to upgrade the WordPress filesystem easily.. But most likely you’ve also found it painful...
View ArticleMagento Tip: Enable Google Sitemap XML
Magento has good support for generating a Google Sitemap XML file, there are just a few steps to the process. Enable Magento’s cron system – see here for details. Enable Google Sitemap in the Magento...
View ArticlejQuery: get a specific ancestor of an element
If you want to get a grandparent or great grandparent element you can chain calls to parent(), e.g parent().parent() for the grandparent. Here’s a nicer way. // use parent() for the parent element...
View Article
More Pages to Explore .....