August 19th, 2010
Alway Show Browser Scroll Bar
You should add this into the reset in your CSS so that the browser always shows a vertical scrollbar. It stops the visual noise of page jumping between pages of different length. html { overflow-y: scroll !important; }
August 16th, 2010
Turn On Error Logging for WordPress
define( 'WP_DEBUG', false ); // turn on debug mode define( 'WP_DEBUG_LOG', false ); // log to wp-content/debug.log define( 'WP_DEBUG_DISPLAY', false ); // don't force display_errors to on ini_set( 'display_errors', 0 ); // hide errors
August 10th, 2010
Shopp Plug-in Cart Updated Method
In one of the random projects we undertook, we implemented the Shopp plugin for WordPress, which by all accounts is a pretty decent shopping cart. Like most things WordPress, you can stretch it’s functionality only so far before you reach the end of the sidewalk. Then, if you’re really brave (read: stupid) you can then start altering core code. In one of the 11 Bridges Success blog posts...
August 5th, 2010
Use Jquery to Remove a Background Image
$('#idofthediv').css({backgroundImage:'none'});
August 2nd, 2010
Make Session Variables Available in WordPress
Require the bootstrap file in your custom WordPress .php in order to make all of the WordPress system resources available to your page, including session variables: 1require_once('../../../wp-load.php'); //path to wp-load.php If sessions aren’t already getting started, you can manually start them with: 1if(!isset(session_id())) session_start();
August 2nd, 2010
Hack the CMS with Ajax and Sessions
Here is a technique that has worked for us, but I’m tempted to put this in the Fail category because it’s such bad form. However, what works, works and in this case it’s pretty easy. Take WordPress as an example CMS. You can gain access to its session variables from your own .php code by adding this to the top of your custom php page: 1require_once('../../../wp-load.php');...
July 25th, 2010
Video Clips on Websites
The new HTML5 video players will automatically show the first frame of the video as the image displayed before the video plays. So, do not use fade in techniques on the video because it will just show a black box. Some video plugins will provide for a thumbnail (called a “poster”) feature. However, these are unreliable because some browsers ignore that directive (IE did for me).
June 27th, 2010
Use Flickr to Feed Your Photo Gallery
Many clients want simple slideshows on their websites. It is best to avoid Flash based sliders for various reasons (SEO performance is of paramount importance to us). There are many great javascript based ones out there that degrade gracefully and don’t require any 3rd party plugins.We prefer Jquery based ones. Typically, these javascript sliders load images listed in the html into an array that...
June 23rd, 2010


