Posts about jQuery

Adding javascript to your theme using wp_enqueue_script

TO add a javascript file to your theme its easy to use header.php in your theme folder. However if there are plugins using same script libraries (like jquery, scriptaculous ) it may cause errors. Here i will show you how to add javascripts to your theme in a safe way using wp_enqueue_script.
Read More →

Opening external links in a new window using jQuery

Opening external links in a new window using jQuery

Using external for rel attribute on a link, you can specify that the link is outside of the current site. This attribute is commonly used for SEO and styling options. And to open a link in a new window when user clicks it you can use target attribute. What if you wanted all external links to open in a new window? jQuery is the answer.
Read More →

Speed up your page load times with lazyload

Lazyload is a jQuery plugin delaying load of images that are out of users sight. This way your page’s visible area is loaded faster.
Read More →

Adding jquery tooltips to your wordpress theme

Adding jquery tooltips to your wordpress theme

To use a jquery plugin within your wordpress site you need to load jquery manually along with the jquery script files. In this step by step tutorial i will explain you how to add a simple jquery tooltip plugin to your site.
Read More →