Colorful posts in
the ‘jQuery’ category

14Aug

WordPress drop down menus: highlight parent items with jQuery


It’s generally useful in sites with extensive drop down menus and many levels of hierarchy to highlight the parent item that encompasses the list of current items in the menu we’re now browsing so we can keep track of where we are. In this tutorial we will learn how to use jQuery to achieve this in WordPress menus, but it can be applied to any menu that has a similar markup.

Read more

Tags: , ,

3May

Preserving radio button checked state during drag and drop with jQuery

Have you ever stumbled upon the issue of radio buttons losing their “checked” state while dragging and dropping a div containing them using the Sortable module of jQuery UI? It is not a pleasant experience and is a known issue even in jQuery 1.7.x bundled in WordPress 3.3 – 3.4. Read on to learn how to fix this.

Read more

Tags: ,

15Jun

Slide upwards in jQuery using slideDown()

The first time you stumble upon it, it’s a bit confusing that the slideDown and slideUp functions in jQuery only allow you to slide an element downwards. However, we can use them to slide an element upwards with just a little bit of CSS and without adding any extra jQuery code.

Read more

Tags: , ,

5Jan

Best jQuery Tutorials in ILC in 2010

Now that 2010 is over, it’s nice to look back and see how many things you’ve learned on the last year. In order to start stretching those muscles for 2011, here’s a review of the most interesting jQuery tutorials featured in ilovecolors during 2010.

Read more

Tags: , , , ,

10Dec

Add a character counter for the excerpt in WordPress

The excerpt is great for magazine sites where only a small bunch of words can be displayed on the home page. However, the lack of a character counting functionality for the field makes it hard to know how many you already typed in. In this tutorial we will learn how to easily add a character counter for the excerpt.
Read more

Tags: , , ,

6Dec

Reveal extra form fields using a select box with jQuery

Reveal extra form fields using a select box with jQuery

Sometimes we need to include a feedback form but without making it too obtrusive to the user so we only want to add options when he is actually using it. In this tutorial we’re going to learn how to reveal hidden fields in a form when an option in a select combo box is selected using jQuery, the JavaScript library.
Read more

Tags: , , ,

30Nov

Featured posts slider in WordPress using sticky posts and jQuery

A friend asked the other day how to create a featured posts section without using plugins, since most of WordPress plugins that you can find to create featured posts are a bit bloated, which isn’t neccesarily bad, since plugins authors try to address almost every situation in order to provide a more useful plugin. The drawback (with plugins in general) is that you end up with a lot of options that you seldom use. In this post we will learn how to create a featured posts section, using WordPress sticky posts and how to integrate them in a slider, using jQuery Cycle.
Read more

Tags: , ,

28Oct

Stop losing visitors on 404 pages in your WordPress sites!

Ideally, you won’t have any 404 situations in your site. Of course, we all know this is far from being true and “Not found” pages on your site is a common situation that might arise from different reasons, ranging from bad or expired links to simple user typos. In these cases, you can and should build better 404 page by providing some information for them to find the content they were looking for. In this tutorial we will explore one way to build a more friendly 404 page by displaying the WordPress search field populating it with the terms used in the url written by the user.

Read more

Tags: , ,

29Sep

How to hide Personal Options in WordPress’ User Profile

How to hide Personal Options in WordPress’ User Profile

Even though WordPress might not the friendliest CMS for user management, provides a good amount of customization for users meta information and profiles. However, one thing that is a bit rough right now is the Personal Options block in the User Pofile: you can’t hide it by removing an action hook or even filter it. In this tutorial we’re going to learn how to removing it using jQuery.
Read more

Tags: , ,

26Aug

Multiple instances of jQuery Tabs

Multiple instances of jQuery Tabs

Back in April 3rd, 2009, I wrote a small script to create tabs with jQuery. Many readers liked its simplicity and asked for some more features, like the ability to automatically rotate between each tab and those were into the second incarnation of the tabs. Many more asked through the comments or by email about the posibility to include multiple instances of the rotating tabs and that’s what this release is about. Read more

Tags: , , , ,

Page 1 of 41234