• netdetective

    (@netdetective)


    I am experimenting with the Sharethis plugin http://sharethis.com but it’s loading it’s green “Share This” button where I don’t want it to – on all my excerpts on my homepage, including my scrolling “Featured” banner.

    http://www.beyourowndetective.com

    I only want it to appear on my individual blog pages, and definitely not all over my homepage. I have no idea how to control where it loads.

    Fred

Viewing 3 replies - 1 through 3 (of 3 total)
  • ShareThis

    (@sharethis)

    Hi,

    It looks like that’s because the featured banner is pulling the whole blog posts.

    It’ possible to use ShareThis with out the plugin, This will give you a lot more control about where the button does and does not show up.

    Note, if you want to use the counter button you need to switch the code in step one with the the code you put in your plugin.

    Here is the simplest example of implementing ShareThis on a WordPress
    blog without using the ShareThis plugin.

    1) In the Header template, just before </head>, add the ShareThis JavaScript library.
    <script type=”text/javascript”
    src=”http://w.sharethis.com/button/sharethis.js#publisher=00000000-0000-0000-0000-000000000000&type=website”></script&gt;

    (You will have to replace the 00000000-0000-000…. part with your sharethis publisher ID. If you don’t know your publisher ID you can figure it out by going to http://sharethis.com/publishers/getbutton and clicking on the “get the code” button. The code you will be given is the same as the code above, just with your publisher ID. Also note that you must be logged into your ShareThis account to get the code.)

    2) In the Main Index template, inside the post loop, place the following code where you want the ShareThis button to appear.
    <script type=”text/javascript”>
    var shared_object = SHARETHIS.addEntry({
    title: “<?php the_title(); ?>”,
    url: “<?php the_permalink(); ?>”
    });
    </script>

    3) In the Single Post template, place the following code where you want the ShareThis button to appear.
    <script type=”text/javascript”>
    var shared_object = SHARETHIS.addEntry({
    title: “<?php the_title(); ?>”,
    url: “<?php the_permalink(); ?>”
    });
    </script>

    Hope this helps,

    –ShareThis support

    Thread Starter netdetective

    (@netdetective)

    I tried disabling the plugin but kept the javascript code in general-options and that seems to work, although the popup boxes don’t work.

    Disabling the plugin apparently hides the javascript code, so I would need to temporarily enable the plugin to be able to edit or delete the javascript code.

    Thanks!
    Fred

    Thread Starter netdetective

    (@netdetective)

    I think what I really want, is to prevent the button from loading on my 4 scrolling banner pages. It causes problems with my scrolling banner, so I can’t use it on those pages. Is there a special stop code I would use to prevent the button from loading on an individual page?

    My site is too big and I have way too many pages to manually place the Sharethis button on individual pages, just to exclude it from 4 pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘sharethis plugin loading where I don’t want’ is closed to new replies.