• Resolved CharlesMTL1

    (@charlesmtl1)


    Hi,

    When I copy text on my web site to a document I am now seeing a whole bunch of stuff that gets added to the text and I don’t want any of it. I only noticed this issue today. I’m not sure if this is due to a change in WordPress or one of my plugins. Can anyone help?

    Thanks in advance. ??

    Example of the issue:
    I go here: https://georgeorwellnovels.com/journalism/through-a-glass-rosily/

    I highlight and copy the first few words of the article and I get this: The recent article by Tribune’s Vienna correspondent – See more at: https://georgeorwellnovels.com/journalism/through-a-glass-rosily/#sthash.FuaM8jIJ.dpuf

    I don’t want the: “See more at:” and the “#sthash.FuaM8jIJ.dpuf” and don’t even know why it is appearing. It doesn’t seem to happen every time I do a CTRL-C but it will happen about 50% of the time.

Viewing 15 replies - 16 through 30 (of 41 total)
  • WPyogi

    (@wpyogi)

    Yes, it will be of great help to anyone else, I’m sure. This site gets indexed really fast, so people will likely find it. I tagged this thread with the plugin name which also helps that happen, and will also move it to the general plugins forum.

    Thanks, Josh – same to you too, of course. You’re always so good to people :).

    collins86

    (@collins86)

    Thanks everyone, I also got a fix on my site. If I have not stumbled on this I would not have found the fix. Thanks to @charlesmtl1 for this post and others shared knowledge. So just to share, for ADDTHIS;

    its just by switching it to false on the js code : {“data_track_addressbar”:false}

    fayence

    (@fayence)

    I see the fix on adding the <script> to the sharethis.php file, but could someone tell me where in the file I need to add this? Any help will be greatly appreciated!

    esmi

    (@esmi)

    Josh

    (@josh401)

    Let’s try opening up the wp_st_opt.js file, found in the ShareThis plugin main folder.

    On line 277, is this line of javascript:

    return ", hashAddressBar: true, doNotCopy: false, doNotHash: false";

    Let’s try changing that to:

    return ", hashAddressBar: false, doNotCopy: false, doNotHash: false";

    If that doesn’t work… try playing around with the other true/false values.

    I’m not promising anything. But after a quick look at the plugin… this might be the line used to change the value.

    Josh

    (@josh401)

    Okay… after seeing THIS thread… we might want to change the values to these:

    return ", hashAddressBar: false, doNotCopy: true, doNotHash: true";

    That should do the trick.

    Thread Starter CharlesMTL1

    (@charlesmtl1)

    Hi Josh, ??

    Thanks for your continued help on this. I still haven’t received a reply from ShareThis support.

    I tried:

    return “, hashAddressBar: false, doNotCopy: true, doNotHash: true”;

    and

    return “, hashAddressBar: false, doNotCopy: false, doNotHash: false”;

    Neither one of those changes fixed the problem. I cleared the browser cache after each change and reloaded the pages.

    That file is actually listed as “inactive” on my site:

    Editing share-this/wp_st_opt.js (inactive)

    Thanks again for your help.

    Josh

    (@josh401)

    Okay… I think I got it. I had to download, install on my test site, dig through code… yada, yada, yada… lol.

    Okay..

    1. Open up ‘sharethis.php’ in the root folder.
    2. Go to line 60.
    3. Change this code:

    $widget ="<script charset=\"utf-8\" type=\"text/javascript\">var switchTo5x=true;</script>";

    … to this:

    $widget ="<script charset=\"utf-8\" type=\"text/javascript\">var switchTo5x=false;</script>";

    Sit back, pop open a cold one.. and relax in your glory ??

    EDIT: You might want to revert back the change I mentioned above… although I doubt it matters. I’m just unfamiliar with the plugin. You may also want to test all it’s features.. and make sure they continue working properly.

    Cheers!

    Thread Starter CharlesMTL1

    (@charlesmtl1)

    Hi again Josh,

    It didn’t work for me. I even changed back the share-this/wp_st_opt.js file to the original settings. I was looking forward to declaring you to be a “genius” but I guess that will have to wait until later.

    ShareThis really needs to explain themselves on this issue as the plugin page clearly states that the CopyNShare function “can be enabled only once you register” and my plugin is NOT registered as I did not want analytics or other special features from them.

    Thanks again,
    Charles

    Josh

    (@josh401)

    Lol.. no worries… that time will come ??

    Okay, I tried it on my test site.. and was successful. So, there has to be something.

    Did you also manually empty your browser cache?

    EDIT: Okay.. it came back on me. Tricky little bugger ?? One sec…

    Thread Starter CharlesMTL1

    (@charlesmtl1)

    EDIT: Okay.. it came back on me. Tricky little bugger ?? One sec…

    Thanks for confirming that I’m not insane. I was about to repeat the file edit again, clear the cache and then start testing in both Chrome and Firefox.

    Josh

    (@josh401)

    Okay… dang!!!!!

    First… you are going to need the “Tweak Option” plugin.. developed by my good friend, OpaJaap.

    Install and activate the plugin. Then, go to Tools -> Tweak Option.

    Search for the ‘st_widget’ option entry.

    Click the “edit” button for this option… copy the small bit of code.. and post it here for me to see.

    Thread Starter CharlesMTL1

    (@charlesmtl1)

    Hi Josh,

    I have to go to bed soon as I’m waking early tomorrow. I will definitely try your plan with the Tweak Option plugin but it could be late afternoon before I’m available again.

    Regards,
    -C.

    Josh

    (@josh401)

    Okay… I’ve got the solution for you when you are ready.

    TTYS!

    Thread Starter CharlesMTL1

    (@charlesmtl1)

    How long do you think it would take me?

Viewing 15 replies - 16 through 30 (of 41 total)
  • The topic ‘Copying text on my site adds this –> See more at: URL/#sthash.3H02zndT.dpuf’ is closed to new replies.