Skip to content

Instantly share code, notes, and snippets.

@bhubbard
Created March 1, 2013 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhubbard/5068776 to your computer and use it in GitHub Desktop.
Save bhubbard/5068776 to your computer and use it in GitHub Desktop.
<?php
// Share This Javascript
if (!is_single()) {
wp_register_script('sharethis', 'http://w.sharethis.com/button/buttons.js', 'jquery', null , true);
wp_register_script('sharethis-config', get_template_directory_uri() . '/assets/js/sharethis.min.js', array('jquery', 'sharethis'), null , true);
wp_enqueue_script('sharethis');
wp_enqueue_script('sharethis-config');
}
@bhubbard
Copy link
Author

bhubbard commented Mar 1, 2013

// ShareThis Code var __st_loadLate=true; // if __st_loadLate is defined then the widget will not load on domcontent ready stLight.options({publisher:'ur-755751bb-eb1b-e907-f9eb-d143c479c8c1',embeds:'true',onhover:'true', publisherGA:"UA-XXXXXXX-X"});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment