ShareThis Forums » The ShareThis WordPress Plugin

Don't add js to header for pages

(3 posts)
  • Started 2 months ago by dchest
  • Latest reply from ShareThisSupport

  1. Hello,

    Thanks for the plugin! There's an option to turn off ShareThis for pages, and it works, but it still adds JavaScript reference to the header.

    Here's the patch:

    *** /Users/dmitry/Downloads/share-this/sharethis.php	2008-08-22 02:22:02.000000000 +0400
    --- sharethis.php	2008-10-26 00:05:20.000000000 +0400
    ***************
    *** 133,138 ****
    --- 133,140 ----
      }
    
      function st_widget_head() {
    + 	if (get_option('st_add_to_page') == 'no' && is_page())
    + 		return;
      	$widget = get_option('st_widget');
      	if ($widget == '') {
      		$widget = st_default_widget();
    Posted 2 months ago #
  2. || is_404()

    would also be good

    Posted 2 months ago #
  3. Thanks! I'll forward this along to our plugin developers.

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.