-3

I'm trying to use lettering.js for the first time and I can't seem to figure out why it's not working. My goal is to get the project names under the photos on the right side of the page to use this script. Can anyone take a look and tell me what I'm doing wrong?

http://dnb.khcreativemedia.com/

Thank you, Krith

1 Answers1

3

At the bottom of your jquery.js, you have:

jQuery.noConflict();

jQuery.noConflict causes $ to be undefined, so you'll need to use the following in your snippet:

jQuery(document).ready(function () {
    jQuery(".project-title").lettering('words');
});

As shown on the .ready() documentation, your function is passed jQuery as a variable, so you can name it whatever you want in local scope:

jQuery(document).ready(function ($) {
    $(".project-title").lettering('words');
});

You can use the developer console in a modern browser to see the following error:

Uncaught TypeError: Property '$' of object [object Object] is not a function

cmbuckley
  • 40,217
  • 9
  • 77
  • 91