เพิ่มไว้ก่อน </body> ครับ
<script type="text/javascript">
function addLink() {
var selection = window.getSelection();
var textCopy = selection.toString();
var stringCopy = textCopy.substring(0, 150);
var pagelink = '<br /><br /> อ่านข่าวต่อได้ที่: ' document.location.href;
var copytext = stringCopy pagelink;
var newdiv = document.createElement('div');
newdiv.style.position = 'absolute';
newdiv.style.left = '-99999px';
document.body.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function () {
document.body.removeChild(newdiv);
}, 100);
}
document.addEventListener('copy', addLink);
</script>
</body>
แก้ไขที่ไฟล์ไหนในwpครับ