Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134847

icakeov on "Registering and enqueueing jquery question"

$
0
0

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 all articles
Browse latest Browse all 134847

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>