Registering and enqueueing jquery question
-
Hi, I am learning how to register and enqueue scripts. I’m doing it for a jqury gallery plugin that I got.
I figured out that in order to register this script:
<link rel="stylesheet" type="text/css" href="../../doptg/assets/gui/css/jquery.dop.ThumbnailGallery.css" />
I would write it like this:
wp_register_script('ga_ThumbnailGallery',get_stylesheet_directory_uri().'/doptg/assets/js/jquery.dop.ThumbnailGallery.js');But I don’t know how to register this one:
<script type="text/JavaScript"> $(document).ready(function(){ $('#galleryContainer').DOPThumbnailGallery({'ID': 1, 'SettingsDataType': 'HTML', 'ContentDataType': 'HTML'}); }); </script>Thoughts? Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Registering and enqueueing jquery question’ is closed to new replies.