{"id":3592782,"date":"2013-03-24T19:17:13","date_gmt":"2013-03-24T19:17:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wp_enqueue-scripts\/"},"modified":"2016-08-20T23:06:15","modified_gmt":"2016-08-20T23:06:15","slug":"wp_enqueue-scripts","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wp_enqueue-scripts\/","title":{"rendered":"wp_enqueue scripts.."},"content":{"rendered":"<p>Hi there, <\/p>\n<p>I&#8217;ve created a website in HTML &amp; CSS using a framework now I&#8217;m converting it to a wordpress theme..<\/p>\n<p>I&#8217;m new to making themes, so please forgive me for being stupid.<\/p>\n<p>On my HTML I have the following in my &lt;head&gt; ;<\/p>\n<pre><code>&lt;!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements and feature detects --&gt;\n\t&lt;script src=&quot;js\/modernizr-2.5.3-min.js&quot;&gt;&lt;\/script&gt;<\/code><\/pre>\n<p>and the following in the footer area I have;<\/p>\n<pre><code>&lt;!-- JavaScript at the bottom for fast page loading --&gt;\n\n\t&lt;!-- Grab Google CDN&#039;s jQuery, with a protocol relative URL; fall back to local if necessary --&gt;\n\t&lt;script src=&quot;\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.2\/jquery.min.js&quot;&gt;&lt;\/script&gt;\n\t&lt;script&gt;window.jQuery || document.write(&#039;&lt;script src=&quot;js\/jquery-1.7.2.min.js&quot;&gt;&lt;\\\/script&gt;&#039;)&lt;\/script&gt;\n\n\t&lt;!--[if (lt IE 9) &amp; (!IEMobile)]&gt;\n\t&lt;script src=&quot;js\/selectivizr-min.js&quot;&gt;&lt;\/script&gt;\n\t&lt;![endif]--&gt;<\/code><\/pre>\n<p>I have tried to add a slider to an area of my theme but the slider appears broken. After searching I found out it may be because there is conflicts with some of the scripts, and to fix this may be to enqueue these scripts using the functions.php file &#8211; however because I&#8217;m new (&amp; stupid) to making parent themes I have failed so far as I don&#8217;t quite understand this.. <\/p>\n<p>Can anyone help me with the code to put in my functions.php file??<\/p>\n<p>Thanks in advance<\/p>\n","protected":false},"template":"","class_list":["post-3592782","topic","type-topic","status-closed","hentry","topic-tag-enqueue","topic-tag-wp_enqueue"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3592782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3592782\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3592782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}