Monday, December 16, 2019

Cara Membuat Link Sumber Otomatis di Blogger

Cara Membuat Link Sumber Otomatis di Blogger


Keuntungan dalam membuat Link Sumber Otomatis adalah salah satu untuk meningkatkan tampilan halaman, juga dapat membantu nilai SEO dari blog itu sendiri.

Bila seseorang meng-copas Full artikel anda secara otomatis link anda akan muncul setelah di paste (tempel), bisa saja seseorang menghapus link anda, tapi itu bisa jadi bentuk peringatan agar sebaiknya menyertakan link sumber ketika meng-copas artikel anda.

Berikut cara membuat Link Sumber Otomatis di Blogger

1. Buka akun Blogger> Klik menu Tema> Klik tombol Edit HTML .

2. Kemudian cari kode </body> lalu tempel kode di bawah ini tepat di atasnya.

Kode Tautan Sumber Otomatis dalam Versi Blogger 1
< script type = 'text/javascript' > //<![CDATA[ // Copy Text function nocopas () { var e= window .getSelection();pagelink= " Read more : " + document .location.href,copytext=e+pagelink,newdiv= document .createElement( "div" ),newdiv.style.position= "absolute" ,newdiv.style.left= "-99999px" , document .body.appendChild(newdiv),newdiv.innerHTML=copytext,e.selectAllChildren(newdiv), window .setTimeout( function () { document .body.removeChild(newdiv)}, 100 )} document .addEventListener( "copy" ,nocopas); //]]>
 </ script >
sumber script : bloggerrfunda.blogspot.com 

 Kode Tautan Sumber Otomatis dalam Versi Blogger 2
 < script type = 'text/javascript' > // <![CDATA[ ! function ( e,t ) { var n= "getSelection" ,o= "removeAllRanges" ,i= "addRange" ,l= "parentNode" ,a= "firstChild" ,d= "appendChild" ,r= "removeChild" ,s= "test" ,c= "innerHTML" ; if (e[n]){ var p,g,f,h,u,y;t.addEventListener( "copy" , function ( C ) { for (g=C.target; 3 ===g.nodeType;)g=g[l]; if (h=t.createElement( "div" ),(p=e[n]())&&p.rangeCount&&(p=p.getRangeAt( 0 ))&&(f=p.cloneRange(),p=p.cloneContents())){ for (;u=p[a];)h[d](u); if (! /^(pre|code)$/i [s](g.nodeName|| "" )&&! /(^|\s)no-attribution(\s|$)/i [s](g.className|| "" )){ var v=e.location.href;h[c]+= "<br> < br > &copy; "+t.title+' < br > Source: < a href = "'+v+'" > '+v+" </ a > "}y=t.createRange(),t.body[ d ]( h ),y.selectNodeContents(h),p=e[ n ](),p[ o ](),p[ i ]( y ),setTimeout(function(){h[ l ][ r ](h),p[ o ](),p[ i ]( f )})}},!1)}}(window,document); //]]> </ script >
sumber script : bloggerrfunda.blogspot.com 

 3. Terakhir, klik tombol Simpan tema.

 Dengan demikian, setiap artikel di blog anda muncul, sehingga sumber tautan artikel blog anda akan terlihat.
Load disqus comments

0 komentar