wp_enqueue scripts..
-
Hi there,
I’ve created a website in HTML & CSS using a framework now I’m converting it to a wordpress theme..
I’m new to making themes, so please forgive me for being stupid.
On my HTML I have the following in my <head> ;
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements and feature detects --> <script src="js/modernizr-2.5.3-min.js"></script>
and the following in the footer area I have;
<!-- JavaScript at the bottom for fast page loading --> <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/jquery-1.7.2.min.js"><\/script>')</script> <!--[if (lt IE 9) & (!IEMobile)]> <script src="js/selectivizr-min.js"></script> <![endif]-->
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 – however because I’m new (& stupid) to making parent themes I have failed so far as I don’t quite understand this..
Can anyone help me with the code to put in my functions.php file??
Thanks in advance
- The topic ‘wp_enqueue scripts..’ is closed to new replies.