How to Add Read More Source Link on Copied Content?


Hi Team,

I saw many content websites having an option where we copy content from a page it also includes
**Read More: <Source Link................>** in Copied text

Please help me how to implement this option in my blogger template

I have searched this option and find for wordpress

Copy the following code into your theme’s functions.php file or a site-specific plugin: (for Wordpress)

function add_copyright_text() {
	if (is_single()) { ?>

<script type='text/javascript'>
function addLink() {
	if (
document.getElementsByClassName('entry-content')[0], true)) {
    var body_element = document.getElementsByTagName('body')[0];
    var selection;
    selection = window.getSelection();
	var oldselection = selection
    var pagelink = "<br /><br /> Read more at WPBeginner: <?php the_title(); ?> <a href='<?php echo wp_get_shortlink(get_the_ID()); ?>'><?php echo wp_get_shortlink(get_the_ID()); ?></a>"; //Change this if you like
    var copy_text = selection + pagelink;
    var new_div = document.createElement('div');'-99999px';'absolute';

    body_element.appendChild(new_div );
    new_div.innerHTML = copy_text ;
    selection.selectAllChildren(new_div );
    window.setTimeout(function() {
        body_element.removeChild(new_div );

document.oncopy = addLink;


add_action( 'wp_head', 'add_copyright_text');

But what incase of Blogger


Do you mean this tool:

Sign up first, then follow next instruction :innocent:, I don’t use this thing anymore since i …so i dont remember how to put the code on template.

Sorry :grimacing:


Yes I was requested for the same. if we go through the link provided by you.

need to signup and use of there code is not much good, instead we may have our own code.

may be our admin help on this.



Try this .

<!-- Copyright Notice -->
<script type='text/javascript'>
function addLink() {
var body_element = document.getElementsByTagName(&#39;body&#39;)[0];
var selection;
selection = window.getSelection();
var pagelink = &quot;<br/><br/> Read more at: <a href='&quot;+document.location.href+&quot;'>&quot;+document.location.href+&quot;</a><br/>Copyright &#169; SpicyTechTips&quot;; // You can change this to your prefered text
var copytext = selection + pagelink;
var newdiv = document.createElement(&#39;div&#39;);;absolute&#39;;;-99999px&#39;;
newdiv.innerHTML = copytext;
window.setTimeout(function() {
document.oncopy = addLink;

Add the above code above


on blogger template.

Change SpicyTechTips from above code to your desire title.

So when someone try to copy and paste your content it will look like this.

I hope this is what you were asking for.

Can we use wordpress readmore scripts in blogger?

Thanks @shahsantosh, I’ll check and update you any how thanks for the support.


@chinnilax My pleasure. I feels good to share the knowledge i know. Try it. It will surely work. Coz i had also check it on my blog and it works nicely. As you see in the screenshot. Happy Blogging :smile: