Web Log

how to use jQuery in WordPress06.3.11

Depending on motivation, these “how-to’s” may or may not become a regular occurrence. I get asked web questions all the time and instead of having to explain the same thing over and over again, I’d like to just start cataloging my solutions.

I’ll kick things off with a quickie:

PROBLEM:
You’re trying to use jQuery in your WordPress theme, widget or plugin but you keep getting an error that’s something along the lines of “Result of expression ‘$’ [undefined].”

DIAGNOSIS:
Chances are, there are other JavaScript libraries being loaded that also uses “$” and it’s fucking up your juice.

SOLUTION:
Use “.noConflict()” to get your party started.

$j=jQuery.noConflict();
$j(document).ready(function($){
// Code that uses jQuery's regular "$" can hang out in here.
}

Filed In: Life, Nerdy
Series: code, how-to, JavaScript, jQuery, Wordpress

OdysseyBMX.com03.16.11

Odyssey is a manufacturer of high-end, BMX-specific bicycle components. Their product line extends to literally every part of a BMX bicycle, excluding the frame. They’re known for having the most innovative and thought out product designs and have a team of the world’s top professional riders backing it up.

Read More →

Filed In: Design, Life, Web
Series: Collections, Odyssey, Wordpress

SundayBikes.com (2009)01.1.09

SundayBikes.com

Design, Development and Photography (Layout/Products)

Working at Odyssey introduces me to a lot of people within the BMX industry and among them is Jim Cielencki, Odyssey Team Rider and owner of Sunday Bikes. As a result, I ended up designing and developing the Sunday Bikes website.

* This version of the site has been retired.
* To see the current version, visit SundayBikes.com.

Filed In: BMX, Design, Web
Series: Sunday Bikes, Wordpress

Web hosting provided by Media Temple