I needed a script that copies a text (in my case, coupon code) onto clipboard and then open the web address associated with the coupon in a new window for my Coupons for Webmasters page. For the clipboard copying, I’m using ZeroClipboard script written by Joseph Huckaby. ZeroClipboard is a free and open source library [...]
Continue reading Click to copy and open site script
Here is a step-by-step tutorial on how to customise WordPress Login page for your website/blog. This tutorial will show you how to change the WordPress logo and link on the Login page without hacking the core code nor installing a plugin. 1. Copy and paste the following code into functions.php file of your current theme. [...]
Continue reading How to customise WordPress Admin Login page
This is one of the most commonly used piece of code for jQuery. Often times, we need to check if a div/element exists in the page before processing a block of script (eg: replacing the content of the div). if ( $(“#message”).length ) { $(‘#message’).text(“Hello!”); }
Continue reading How to check if div exists in jQuery
Here’s a snippet of CSS and HTML code that aligns an image in center (horizontally) and middle (vertically). Tested in Firefox, IE, Chrome and Safari. CSS #enter { position: absolute; text-align: center; left: 50%; top: 50%; margin: -120px auto 0 -130px; /* value of top margin: height of the image divide by 2 (ie: 240 [...]
Continue reading Align an image in center and middle using CSS
21 Apr, 2010
Troubleshooting jQuery.get() Cache issue in Internet Explorer
Posted in: Snippets,Troubleshooting,Tutorials
There is an issue with jQuery.get() in Internet Explorer when trying to update content on the fly because IE caches XMLHttpRequest response and the AJAX call made via jQuery.get() is therefore always returning the same result. I encountered this problem when I was writing a function similar to facebook Like feature where the Like counter [...]
Continue reading Troubleshooting jQuery.get() Cache issue in Internet Explorer
WordPress iPhone app was released almost a year ago, but I have only downloaded and used it recently. WordPress for iPhone is available for all self-hosted wordpress.com blogs provided they are using WordPress 2.7 or higher. The app allows you to access the Administrator Panel of the WordPress blog using your iPhone, enabling you to [...]
Continue reading WordPress iPhone App – a step by step user guide to using WordPress for iPhone
10 Mar, 2010
Display 5 latest posts in each category in WordPress
To display 5 latest posts in each parent category of your WordPress blog, add the following code into the template that you want the result to appear. In our case, we added the following code into our 404 template page (404.php of current theme). Other places that you might want to display a list of [...]
Continue reading Display 5 latest posts in each category in WordPress
FireFTP is a browser plugin for Mozilla Firefox that lets you connect to a FTP server. By default, it doesn’t show any hidden files on the server, but you can change this via Options. 1. Connect to a FTP server using FireFTP 2. Click on Tools -> Options from the top right menu 3. From [...]
Continue reading How to show hidden files in FireFTP
Here is how to create a custom archive page in WordPress just like the one you see on our blog. 1. Go to the current theme folder of your WordPress installation (wp-content/themes/*current theme*) and make sure you don’t already have archives.php in the folder 2. Create a new file called archives.php (or whatever file name [...]
Continue reading 5 steps to creating a custom Archive page in WordPress
Email signatures are not new and they have been around for as long as email itself has. Almost every organisation has an email signature template that all the employees are asked to use. Why? Because email signatures are a source of marketing, advertising and branding. They are a must-have accessory for any business email. So [...]
Continue reading Tips to creating an email signature for your online brand
Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 

