title: Add jquery snippet to WordPress
body: <p>I'm trying to add some jQuery to my WordPress website, but it won't work yet.</p>
  
  <p>Here's my code: <a href="http://jsfiddle.net/Lb71gj9h/#&amp;togetherjs=RGBzMyqBd1" rel="nofollow noreferrer">http://jsfiddle.net/Lb71gj9h/#&amp;togetherjs=RGBzMyqBd1</a></p>
  
  <p>The code works like a charm, but it's hard for me to implement on my WordPress website.</p>
  
  <p>Where do I add this little piece of jQuery?</p>
  
  <pre><code>if (jQuery("span").hasClass("swatch-class1 selected")) {
    jQuery(".class3").addClass("displaynone");
  }
  </code></pre>
  
  <p>Possibly I have to build this in a way that it is a jQuery 'function', but I don't know how.</p>
  
  <p>Thanks for reply.</p>