Embedding CodePen Calorie Script – jquery error

To use jquery in WordPress you have to use the jQuery function instead of $, this is done to avoid naming conflicts. A good way to return the jquery function to its original $ is to wrap the code inside a block like this:

jQuery(function($) {
    //code here
});