Expert Group of programming
Loading...

“- See more at…” is included in a copy+paste operation from webpage

Posted by : Heycode Tech | Posted in : Javascript Concept, wordpress, WordPress Plugins | Dec 12,2015 | 0 comments

Sometime,when we copy any content from the webpage and past anywhere then we got one extra content like : – See more at: http://heycodetech.com/custom-post-type-ui-generator :

I want to remove this extra content.

Here this article explains why this extra content have come and how to remove this extra content and more.

How to Remove this extra content :-
When we use the plugin : sharethis : for sharing the content on social website then we are using this JS file as well as some scripts.Then unfortunately we use some extra parameter i.e enable extra feature of this plugin which is not needed . So you need to disable this extra feature.

Let’s see here

1: This code will enable the CopyNShare URL i.e it will included the extra content URL, and text tracking:

<script type="text/javascript">stLight.options({publisher: "INSERTYOURPUBKEY", doNotHash:false, 
doNotCopy:false,hashAddressBar:true});</script>

2: This code will disable the CopyNShare URL i.e it will not included the extra content URL, and text tracking:

<script type="text/javascript">stLight.options({publisher: "INSERTYOURPUBKEY", doNotHash:true, 
doNotCopy:true,hashAddressBar:false});</script>

Note : doNotCopy:true , this is used for disable the CopyNShare URL.

Key Property of share this plugin
Here is the key property which is very valuable for enable and disable the feature.
See in table.

NameDefinitionTypeoptionsRequirement
doNotHashThis is the master option for CopyNShare
This overrides the doNotCopy and hasAddressBar setting. If true, the 2 options are ignored.
booleanfalse/trueOptional
doNotCopyIf false, “See more: yourURL.com#SThashtag” will appear after a user pastes texts after a copy action.booleanfalse/trueOptional
hashAddressBarIf true, a special #hastag will be appended to the end of your address bar URL.booleanfalse/trueOptional

See the example on above.

Conclusion :
default-image
Hope so it will help for enable and disable the ‘doNotHash’ and ‘doNotCopy’but still if you have any query then please share with me .

Tags:

Author information - Heycode Tech

Every world can ask question and my website registered user give the suggestion.

See all posts by Author

Connect to author

About us

Heycodetech is a platform where you can ask any questions related to the programming like PHP,jQuery, MYSQL,HTML , CSS and moreHere is the Expert group of programming.