Using jQuery plugins with WordPress
-
In functions.php I have the following code
function wpt_theme_js() { wp_enqueue_script( 'fullpagejs', get_template_directory_uri() . '/js/jquery.fullPage.min.js', array('jquery'), '', true ); } add_action( 'wp_enqueue_scripts', 'wpt_theme_js' );I can’t get any simple plugins to work. Am I missing something?
In the relevant page template I have some jquery code in script tags just before the closing body tag. I am typing jQuery rather than the dollar sign<script>jQuery(document).ready(function() { jQuery('#fullpage').fullpage(); }); </script>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Using jQuery plugins with WordPress’ is closed to new replies.