Unusual Question: May I just enqueue the jquery plugin vs the WP Plugin
-
This may seem odd, but is it possible to just enqueue the javascript-based Jquery plugin via the functions file and then write my own Jquery to control it? Without going too deep into it, I’m helping a friend out w/ a small scrolly site and want to show as few plugins as possible.
I’ve tried downloading the minified version and enqueueing it via the functions file w/ Jquery as a dependency. Then I added a small file using this code from the site:
<script> (function($){ $(window).load(function(){ $("a[rel='m_PageScroll2id']").mPageScroll2id(); }); })(jQuery); </script>
I’ve tinkered around w/ it, but can seem to get it going. Am I way off base? Would love to use your AWESOME code in this fashion if possible. Thanks in advance for any guidance you offer.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Unusual Question: May I just enqueue the jquery plugin vs the WP Plugin’ is closed to new replies.