September 24, 2015

Textual description of firstImageUrl

Make Blogger External Links Automatically Set With Nofollow Attribution

|
As it is, Blogger already has these two options in the Link function:

* open link in a new window
* nofollow attribute

blogger external links automatically set with nofollow attribution
But you have to do them manually each time when you add a link to your blog post.

Here is a easier way to make all your external links with Nofollow attribution.

Blogger External Links Nofollow Attribution Automatically


Log into your Blogger Dashboard.

2. Click Theme.

3. Click on Edit HTML.

4.Search for the ending </head> tag.


How To: To find </head>, press Ctrl and the letter "F" keys together on your keyboard.

An empty box will pop up. Type in </head> and it will be highlighted to you.


5. Now paste this Javascript code ABOVE </head> tag.

<script type="text/javascript">
jQuery(document).ready(function () {

jQuery('a[href*="http://"]:not([href*="http:// your-blog.blogspot.com"])').attr('rel', 'nofollow');

jQuery('a[href*="https://"]:not([href*="https://your-blog.blogspot.com"])').attr("target", "_blank");

    });
</script>
Important: Make sure you change both URLs: http://www.your-blog.blogspot.com (highlighted in white) to your own blog URL.

6. Click the Save template button.

7. That's all you need to do.


Note: All tutorials on Blogger template featured in this blog are for Simple template by Josh Peterson.