how to nofollow all external links in blogger automatically
- ابحث عن الوسم
</head>
- للبحث عن الأكواد , نظهر صندوق البحث بالضغط على :
Ctrl + f
- أضف قبله الكود التالي:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js' type='text/javascript'></script>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery('a[href*="http://"]:not([href*="http://www.YOURBLOGNAME.com"])').attr('rel', 'nofollow');
jQuery('a[href*="https://"]:not([href*="https://www.YOURBLOGNAME.com"])').attr("target", "_blank");
});
</script>
ليست هناك تعليقات:
إرسال تعليق